【发布时间】:2019-04-15 22:38:33
【问题描述】:
我使用以下代码获取公众号的订阅源,但是无法获取图片、视频、gif等媒体。
TWTRAPIClient *APIClient = TWTRAPIClient.clientWithCurrentUser;
TWTRUserTimelineDataSource *newArray = [[TWTRUserTimelineDataSource alloc] initWithScreenName:@"TomCruise" APIClient:APIClient];
[newArray loadPreviousTweetsBeforePosition:@"0" completion:^(NSArray<TWTRTweet *> * _Nullable tweets, TWTRTimelineCursor * _Nullable cursor, NSError * _Nullable error) {
for (int count=0; count<tweets.count; count++) {
NSLog(@"tweet json is == \n%@",[tweets[count] tweetID]);
NSLog(@"tweet text is == \n%@",[tweets[count] text]);
[self.twitterarray addObject:[tweets[count] text]];
}
[self reloadCollectionView];
}];
这里我得到了 TWTRTweet 数组,但它不包含任何媒体。
帮帮我。
【问题讨论】:
标签: ios objective-c twitter twitterkit