oauth - iOS Linked in how to get full profile and connection at same request? -
can full profile details , user connections @ same time through linked in. oauth api
i getting user profile details , user connections details in separate request.
nsurl *url = [nsurl urlwithstring:@"http://api.linkedin.com/v1/people/~/connections"]; nsurl *url = [nsurl urlwithstring:@"http://api.linkedin.com/v1/people/~:(first-name,last-name,headline,picture-url,email-address,location,id)"];
but when connections details not provide users profile info, vise versa. request parameter used below code
oarequestparameter *nameparam = [[oarequestparameter alloc] initwithname:@"scope" value:@"r_fullprofile+r_emailaddress+r_network"]; nsarray *params = [nsarray arraywithobjects:nameparam, nil]; [request setparameters:params]; oarequestparameter * scopeparameter=[oarequestparameter requestparameter:@"scope" value:@"r_fullprofile r_emailaddress r_network"]; [request setparameters:[nsarray arraywithobject:scopeparameter]];
many in advance. need help
Comments
Post a Comment