-(void) viewDidLoad
{
NSString *strMethod=[NSString stringWithFormat:@"media/popular?access_token=%@",appDelObj.instagram.accessToken];
[appDelObj.instagram requestWithMethodName:strMethod params:nil httpMethod:@"GET" delegate:self];
}
-(IGRequest*)requestWithMethodName:(NSString*)methodName
params:(NSMutableDictionary*)params
httpMethod:(NSString*)httpMethod
delegate:(id<IGRequestDelegate>)delegate {
NSString * fullURL = [kRestserverBaseURL stringByAppendingString:methodName];
return [self openUrl:fullURL
params:params
httpMethod:httpMethod
delegate:delegate];
}
答案 0 :(得分:0)
我刚刚更改了我之前点击过的网址,之前用于提供大多数热门图片的结果,但是以下网址现在会显示用户上传的所有图片
NSString *strMethod=[NSString stringWithFormat:@"users/self/feed?access_token=%@",appDelObj.instagram.accessToken];
[appDelObj.instagram requestWithMethodName:strMethod params:nil httpMethod:@"GET" delegate:self];