Fad*_*orm 3 api oauth ios linkedin-api
当我使用 linkedin V1 API 时,出现以下错误:
response body: {
"errorCode": 0,
"message": "[unauthorized]. The token used in the OAuth request has been revoked. 75--5cfb9cdb-3c9c-47c2-b3f8-XXXXXXXX",
"requestId": "I2GQ0ZMWIE",
"status": 401,
"timestamp": 1408976297742
}
Run Code Online (Sandbox Code Playgroud)
我在这里使用本指南,我正在做这个人正在做的事情,但我得到了不同的结果:
https://github.com/PrincessPolymath/LinkedIn-OAuth-Sample-Client
我不知道为什么我收到OAuth 请求中使用的令牌已被撤销。对于一个错误。HTTP 请求是相同的。可能是我的捆绑 ID 的问题吗?
我在 linkedin 上找不到任何关于此事的信息。为什么 linkedin 不像其他 API 那样具有正常的错误代码查找功能。
这是两个请求对象的一些照片,一张来自示例,一张来自我的。

我在这里根据我对您所描述的问题的理解进行猜测,尚未对此进行测试。我还假设你的凭据是正确的......
您应该查看Kamyar Mohager (#39) 的答案,他解释了如何绕过此错误:
When obtaining access token, error occurs if:
POST https://www.linkedin.com/uas/oauth2/accessToken
Body:
{
grant_type=authorization_code,
code={auth-code},
redirect_uri={uri},
client_id={id},
client_secret={secret}
}
The error WON'T occur if you obtain the access token by passing the params as query params:
POST https://www.linkedin.com/uas/oauth2/accessToken?grant_type=authorization_code&code={auth-code}&redirect_uri={uri}&client_id={id}&client_secret={secret}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4628 次 |
| 最近记录: |