Skip to content

Instantly share code, notes, and snippets.

@sag333ar
Created November 27, 2013 10:36
Show Gist options
  • Save sag333ar/7673682 to your computer and use it in GitHub Desktop.
Save sag333ar/7673682 to your computer and use it in GitHub Desktop.
STTimeline_twitter_api.h: Header-file for fetching tweets from twitter which works for iOS 7 + iOS 6 + iOS 5
//
// timeline_twitter_api.h
// Twitter demo
//
// Created by SagarRK on 09/10/13.
// Copyright (c) 2013 http://sugartin.info . All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol timeline_twitter_api_delegate <NSObject>
@required
- (void)timeline_twitter_api_did_complete:(NSArray*)arrayOfTweets;
- (void)timeline_twitter_api_did_fail:(NSError*)error;
@end
@interface timeline_twitter_api : NSObject
@property (nonatomic, strong) id<timeline_twitter_api_delegate> delegate;
- (void)getTweetsFortwitterID:(NSString *)twitterName recentTweetsCount:(NSUInteger)count;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment