Я пытаюсь подписать с помощью linkedin.Once успешный логин, я пишу следующий код. Моя проблема в том, когда я получаю токен acceses, я использую его для api LISDKSession * session = [[LISDKSessionManager sharedInstance] session]; NSString * at = [[session accessToken] accessTokenValue]; NSString * url = [[NSString alloc] initWithFormat: @ "https://api.linkedin.com/v1/people/~:(email-address)?oauth2_access_token=%@&format=json", at]; В ответ я получаю follwing { "ERRORCODE": 0, "сообщение": "Невозможно проверить маркер доступа", "RequestID": "XXFRO610RP", "статус": 401, "метка": 1443599825188 }User Authentication using linkedin
0
A
ответ
0
Не пропустите токен доступа к запросу. После авторизации пользователя и назначений полномочий попробуйте это.
if ([LISDKSessionManager hasValidSession])
{
NSString *url=[[NSString alloc] initWithFormat:@"https://api.linkedin.com/v1/people/~:(email-address)&format=json"];
[[LISDKAPIHelper sharedInstance] getRequest:url
success:^(LISDKAPIResponse *response) {
// do something with response
}
error:^(LISDKAPIError *apiError) {
// do something with error
}];
]}
Смежные вопросы
- 1. User Authentication using AsyncTask
- 2. MongoDB Atlas User Authentication using node.js
- 3. LinkedIn Authentication
- 4. User Authentication User Authorization
- 5. User Authentication
- 6. Django custom User authentication authentication
- 7. iOS linkedin authentication
- 8. Grails REST User Authentication
- 9. MVC3 User Authentication link
- 10. Deployd + Swift User Authentication
- 11. JsonWebToken User Authentication Issue
- 12. User Authentication Not Working
- 13. Reddit OAuth2 User Authentication
- 14. Endpoints User Authentication
- 15. Rails Api Authentication vs User Authentication
- 16. LinkedIn Authentication on OWIN/MVC5
- 17. Http Authentication using WebSocket4Net
- 18. Spring Social Twitter - User Authentication
- 19. Json Web Token + User Authentication
- 20. ASP.NET MVC 4 User Authentication
- 21. User Authentication with Rails App
- 22. Linkedin api call using oauth in java
- 23. using unix login in jsp authentication
- 24. Spring Secuiry Database Authentication casting Spring User to Domain User
- 25. Drop mysql user using PHP
- 26. User prompt using if statements
- 27. SQL Server User Instances и SQL Authentication
- 28. User Authentication с MVC 5, без EF
- 29. User Authentication with Razor MVC + Mysql
- 30. PayPal Payment Advanced User authentication failed