1.1 --- a/Plugins/Twitter Plugin/MGTwitterEngine/MGTwitterEngine.m Fri Jun 12 22:56:27 2009 -0400
1.2 +++ b/Plugins/Twitter Plugin/MGTwitterEngine/MGTwitterEngine.m Thu Nov 19 21:12:23 2009 -0500
1.3 @@ -934,7 +934,7 @@
1.4
1.5 - (NSString *)getFollowedTimelineFor:(NSString *)username since:(NSDate *)date startingAtPage:(int)pageNum count:(int)count
1.6 {
1.7 - NSString *path = @"statuses/friends_timeline.xml";
1.8 + NSString *path = @"statuses/home_timeline.xml";
1.9
1.10 NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
1.11 if (date) {
1.12 @@ -944,7 +944,7 @@
1.13 [params setObject:[NSString stringWithFormat:@"%d", pageNum] forKey:@"page"];
1.14 }
1.15 if (username) {
1.16 - path = [NSString stringWithFormat:@"statuses/friends_timeline/%@.xml", username];
1.17 + path = [NSString stringWithFormat:@"statuses/home_timeline/%@.xml", username];
1.18 }
1.19 int tweetCount = DEFAULT_TWEET_COUNT;
1.20 if (count > 0) {
1.21 @@ -960,7 +960,7 @@
1.22
1.23 - (NSString *)getFollowedTimelineFor:(NSString *)username sinceID:(NSString *)updateID startingAtPage:(int)pageNum count:(int)count
1.24 {
1.25 - NSString *path = @"statuses/friends_timeline.xml";
1.26 + NSString *path = @"statuses/home_timeline.xml";
1.27
1.28 NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
1.29 if (updateID > 0) {
1.30 @@ -970,14 +970,14 @@
1.31 [params setObject:[NSString stringWithFormat:@"%d", pageNum] forKey:@"page"];
1.32 }
1.33 if (username) {
1.34 - path = [NSString stringWithFormat:@"statuses/friends_timeline/%@.xml", username];
1.35 + path = [NSString stringWithFormat:@"statuses/home_timeline/%@.xml", username];
1.36 }
1.37 int tweetCount = DEFAULT_TWEET_COUNT;
1.38 if (count > 0) {
1.39 tweetCount = count;
1.40 }
1.41 [params setObject:[NSString stringWithFormat:@"%d", tweetCount] forKey:@"count"];
1.42 -
1.43 +
1.44 return [self _sendRequestWithMethod:nil path:path queryParameters:params body:nil
1.45 requestType:MGTwitterStatusesRequest
1.46 responseType:MGTwitterStatuses];
1.47 @@ -1318,6 +1318,14 @@
1.48 responseType:MGTwitterStatus];
1.49 }
1.50
1.51 +- (NSString *)retweetUpdate:(NSString *)updateID
1.52 +{
1.53 + NSString *path = [NSString stringWithFormat:@"statuses/retweet/%@.xml", updateID];
1.54 +
1.55 + return [self _sendRequestWithMethod:HTTP_POST_METHOD path:path queryParameters:nil body:nil
1.56 + requestType:MGTwitterAccountRequest
1.57 + responseType:MGTwitterStatus];
1.58 +}
1.59
1.60 #pragma mark Sending and editing direct messages
1.61