Linkedin API访问令牌生成错误 [英] Linkedin API access token generation error

查看:127
本文介绍了Linkedin API访问令牌生成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试生成访问令牌以收集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:

https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=75pcum6zb2cael&state=DCEEFWF45453sdffef424&redirect_uri=https://www.google.com

但是当我最终尝试使用下面的URL生成访问令牌时,出现了错误响应:

but when i finally tried to generate the access token using the below URL, i got an error response :

{"error_description":缺少必需的参数,包括无效的参数 参数值,参数不止一次. :无法检索访问 令牌:appId或重定向uri与授权代码不匹配或 授权代码已过期",错误":"invalid_request"}

{"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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆