1
내 앱에서 트위터에서 팔로어/팔로어 친구 목록을 얻고 싶습니다.IOS sdk에 Twitter 통합
바로 지금, 나는 추종자의 이름 &을 가져올 수 있지만 다음은 가져올 수 없습니다.
내 코드는 다음과 같다 :
-(void) getTwitterFriendsIDListForThisAccount{
NSURL *url = [NSURL URLWithString:@"http://api.twitter.com/1/followers/ids.json"];
NSDictionary *p = [NSDictionary dictionaryWithObjectsAndKeys:myAccount.username, @"screen_name", nil];
TWRequest *twitterRequest = [[TWRequest alloc] initWithURL:url parameters:p requestMethod:TWRequestMethodGET];
[twitterRequest setAccount:myAccount];
[twitterRequest performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResposnse, NSError *error)
{
if (error) {
}
NSError *jsonError = nil;
// Convert the response into a dictionary
NSDictionary *twitterFriends = [NSJSONSerialization JSONObjectWithData:responseData options:NSJSONWritingPrettyPrinted error:&jsonError];
NSArray *IDlist = [twitterFriends objectForKey:@"ids"];
NSLog(@"response value is: %@", IDlist);
}
어떻게 다음 목록 ID를 얻을 수 있습니까 ?? 가능하면 및 email_ids를 입력하십시오.
때때로 마이그레이션 오류가 표시됩니다. 1.0에서 1.1로 마이그레이션하는 방법은 무엇입니까?
, 감사합니다