2013-09-30 20 views
1
-(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

我剛纔更改了之前打過的URL,較早用於給我最流行圖像的結果,但下面的URL現在會給所有人用戶上傳的圖片

NSString *strMethod=[NSString stringWithFormat:@"users/self/feed?access_token=%@",appDelObj.instagram.accessToken]; 
       [appDelObj.instagram requestWithMethodName:strMethod params:nil httpMethod:@"GET" delegate:self]; 
相關問題