Created
October 24, 2012 07:26
-
-
Save gonzalezreal/3944542 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (SLRequest *)requestForNewTweets | |
{ | |
NSMutableDictionary *parameters = [NSMutableDictionary dictionary]; | |
parameters[@"include_rts"] = @"true"; | |
TGRTweet *lastTweet = [TGRTweet lastTweetInManagedObjectContext:self.managedObjectContext]; | |
if (lastTweet) { | |
parameters[@"since_id"] = [lastTweet.identifier stringValue]; | |
} | |
SLRequest *request = [SLRequest requestForServiceType:SLServiceTypeTwitter | |
requestMethod:SLRequestMethodGET | |
URL:[NSURL URLWithString:kHomeTimelineURL] | |
parameters:parameters]; | |
request.account = self.account; | |
return request; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment