Delphi,oAuth and Linked API, Access token giving Unauthorized

南笙酒味 提交于 2019-11-30 18:59:39

问题


I am working on a program which posts updates to LinkedIn.

I am using Delphi XE2,oAuth and LinkedIn API for the same. I am able to request token and authorize application. But I am getting error on when trying to Access token.

I am using oAuth for Delphi from http://chuckbeasley.wordpress.com/2009/04/29/using-oauth-for-delphi/. For SSL I am using, TIdSSLIOHandlerSOcketOpenSSL with method sslvSSLv3. I am trying to post the following.

https://api.linkedin.com/uas/oauth/accessToken?oauth_consumer_key=xxxx&oauth_nonce=A7CB896D776BA2FEC05E9FBB66AD06B2&oauth_signature_method=HMAC-SHA1&oauth_signature=K%2F7uzf%2FjEvQ3u12a0Olimf%2FZxG4%3D&oauth_timestamp=1338019026&oauth_token=xxxx&oauth_version=1.0&oauth_verifier=53326

The result I am getting from Indy Http is giving bellow.

Http/1.1 401 – Unauthorized

Can anyone help me for fixing this.

来源:https://stackoverflow.com/questions/10828270/delphi-oauth-and-linked-api-access-token-giving-unauthorized

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!