每@bizsytes建議我已經做了兩個月difications到MGTwitterEngine的 getFollowedTimelineSinceID方法:。
改變了路徑串從@狀態/ friends_timeline%@到@狀態/ home_timeline%@
添加了Include_RTS對象
顯然它解決了我的問題(轉推&檢索到的狀態數量)。
現在的方法現在看起來如下:
- (NSString *)getAllFollowedTimelineSinceID:(unsigned long)sinceID withMaximumID:(unsigned long)maxID startingAtPage:(int)page count:(int)count
{
NSString *path = [NSString stringWithFormat:@"statuses/home_timeline.%@", API_FORMAT];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
if (sinceID > 0) {
[params setObject:[NSString stringWithFormat:@"%u", sinceID] forKey:@"since_id"];
}
if (maxID > 0) {
[params setObject:[NSString stringWithFormat:@"%u", maxID] forKey:@"max_id"];
}
if (page > 0) {
[params setObject:[NSString stringWithFormat:@"%d", page] forKey:@"page"];
}
if (count > 0) {
[params setObject:[NSString stringWithFormat:@"%d", count] forKey:@"count"];
}
[params setObject:[NSString stringWithFormat:@"%@", @"true"] forKey:@"Include_RTS"];
return [self _sendRequestWithMethod:nil path:path queryParameters:params body:nil
requestType:MGTwitterFollowedTimelineRequest
responseType:MGTwitterStatuses];
}
你已經採取了看看MG源代碼,看看API調用它正在爲getFollowed ...我會做到這一點,再看看twitter API文檔,以確保轉發甚至應該回來的電話。 – shawnwall
謝謝shawnwall,我會看看getFollowed執行的實際api調用。關於Twitter API - 它看起來像Twitter API確實支持獲取轉發。 – user898836