GithubHelp home page GithubHelp logo

myeyesareblind / grabkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pierrotsmnrd/grabkit

1.0 1.0 0.0 8.17 MB

Simple access on iOS to your photos on Facebook, FlickR, Instagram, Picasa, and more

License: Other

Objective-C 98.78% Shell 1.22%

grabkit's Introduction

GrabKit

GrabKit is an iOS Objective-C library offering simple and unified methods to retrieve photo albums on Facebook, Flickr, Picasa, iPhone/iPad and Instagram (and more to come...)

Abstract

In this fork, methods to grab comments of the photo and featured photos feed are added.

Comments Grab

Grabs public users comments of the photo.

GRKServiceCommentsGrabberProtocol:

    @protocol GRKServiceCommentsGrabberProtocol <NSObject>
    @required

    -(void) commentsOfPhoto:(GRKPhoto*)photo
    withCommentsAtPageIndex:(NSUInteger)pageIndex
    withNumberOfCommentsPerPage:(NSUInteger)numberOfCommentsPerPage
           andCompleteBlock:(GRKServiceGrabberCompleteBlock)completeBlock
              andErrorBlock:(GRKErrorBlock)errorBlock;

    @end

CompleteBlock will recieve an array of GRKComments. The comment is described with:

GRKComment:

    @property (nonatomic, strong, readonly) NSString*  commentId;
    @property (nonatomic, strong, readwrite) NSDate*    publishDate;
    @property (nonatomic, strong, readwrite) NSString*  message;
    @property (nonatomic, strong, readwrite) GRKAuthor* author;

There is also an helper internal protocol:

@protocol GRKCommentsInternalProtocol

    -(BOOL)isResultForCommentsInTheExpectedFormat:(id)result;
    -(GRKComment*)commentWithRawComment:(NSDictionary*)rawComment;

The comments protocol is supported by next grabbers: flickr, insta, facebook. Picasa is not supported.

Featured Photos grabber

The featured photos are grabbed from:

  • Flickr: flickr.interestingness.getList
  • Instagram: /media/popular Facebook does not provide such api.

####GRKServiceFeaturedPhotosGrabberProtocol

    -(void) featuredPhotosAtPageIndex:(NSUInteger)pageOffset
            withNumberOfPhotosPerPage:(NSUInteger)numberOfPhotosPerPage
                     andCompleteBlock:(GRKServiceGrabberCompleteBlock)completeBlock
                        andErrorBlock:(GRKErrorBlock)errorBlock;

Also a new model class is added: ####GRKAuthor @interface GRKAuthor @property (nonatomic, strong, readwrite) NSString* authorId; @property (nonatomic, strong, readwrite) NSString* name;

The featured photos feed is added to the demo application.

grabkit's People

Contributors

pierrotsmnrd avatar myeyesareblind avatar zrxq avatar sromanuk avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.