Closed RyanTLX closed 10 years ago
the only difference is that in 'requestWithParams:delegate:' you need to add 'method' name in params dictionary in 'requestWithMethodName:params:httpMethod:delegate:' you can pass 'method' name as parameter and, in addition, you can set the http method (GET, POST...)
Hi @crino , pardon me but honestly, I still don't fully understand. Can you provide an example?
if you take a look at example you can see the call:
IGAppDelegate* appDelegate = (IGAppDelegate*)[UIApplication sharedApplication].delegate;
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"users/self/followed-by", @"method", nil];
[appDelegate.instagram requestWithParams:params
delegate:self];
the same call can be done by:
IGAppDelegate* appDelegate = (IGAppDelegate*)[UIApplication sharedApplication].delegate;
[appDelegate.instagram requestWithMethodName:@"users/self/followed-by"
params:nil
httpMethod:@"GET"
delegate:self];
Hi @crino ,
Could you explain what is the difference between
and
and an example of situations where one will be preferred over the other?
Many thanks!