linkedin - Request failed: unauthorized (401) IOS LinkedinAPI -


i've looked @ similar questions none seem solve problem. use query below access information linkedin. know url correct because i've tested on apigee.com keep getting same error. after user has logged in , i've been authorized. doing wrong?

pfquery *query = [pfquery querywithclassname:@"linkedinuser"]; [query wherekey:@"user" equalto:user]; [query getfirstobjectinbackgroundwithblock:^(pfobject *linkedinresults,     nserror *error) {     if (!error) {          [pflinkedinutils.linkedinhttpclient get:[nsstring stringwithformat:@"https://api.linkedin.com/v1/people/~:(first-name)?oauth2_access_token=%@&format=json", linkedinresults[@"accesstoken"]] parameters:nil success:^(afhttprequestoperation *operation, id result) {              nslog(@"response json: %@", result); 

you logged in? means server have given authentication key have supply in following requests. didn't, why error.

look @ response get. status 401 tell authentication have supply allowed in.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -