Linkedin API访问令牌生成错误 [英] Linkedin API access token generation error
问题描述
我正在尝试生成访问令牌以收集linkedin数据.我遵循了linkedin API文档中提供的说明.我在开发人员页面上创建了一个应用程序,并得到了以下内容:
i am trying to generate access token to collect linkedin data. I followed the instructions provided in the linkedin API documentaion. I created an app in developers page and got the following:
Application Details
• Company:
Fresher
• Application Name:
xxxxxxxxxx
• API Key:
75pcum6zb2cael
• Secret Key:
xxxxxxxxxxxxxxxx
• OAuth User Token:
xxxx-xxxx-xxxx-xxxx-xxxxxxxxxx
• OAuth User Secret:
xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
使用 API密钥,我生成了 authorization_code ,其URL为:
Using the API Key i generated the authorization_code with the URL:
但是当我最终尝试使用下面的URL生成访问令牌时,出现了错误响应:
but when i finally tried to generate the access token using the below URL, i got an error response :
{"error_description":"missing required parameters, includes an invalid parameter value, parameter more than once. : Unable to retrieve access token : appId or redirect uri does not match authorization code or authorization code expired","error":"invalid_request"}
即使经过多次验证,也会出现相同的错误消息.
Even after multilple validations, the same error messages appears.
请帮助.谢谢.
推荐答案
最后,我得到了访问令牌.授权码将在20秒后过期,因此必须在生成授权码后立即调用访问令牌URL.
finally, i got the access token. The authorization code expires in 20 seconds, so the access token URL must be called immediately after generating the authorization code.
这篇关于Linkedin API访问令牌生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!