对api.linkedin.com/v2/的任何查询都将返回“访问权限不足...". [英] Any queries to the api.linkedin.com/v2/ return "Not enough permissions to access ..."

查看:156
本文介绍了对api.linkedin.com/v2/的任何查询都将返回“访问权限不足...".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 我在以下URL上使用 Client ID Client Secret 获得了访问令牌(范围:r_basicprofile rw_company_admin w_share):
  1. I got the Access Token (with scope: r_basicprofile rw_company_admin w_share) using the Client ID, Client Secret at following URLs:
    • https://www.linkedin.com/oauth/v2/authorization
    • https://www.linkedin.com/oauth/v2/accessToken

https://api.linkedin.com/v2/me端点

curl -H "Authorization: Bearer ACCESS_TOKEN"
    -H "Accept: application/json"
    -H "Content-Type: application/json"
    -H "X-Restli-Protocol-Version: 2.0.0" https://api.linkedin.com/v2/me

  • 获取回复:

  • Get response:

    {
        "serviceErrorCode": 100,
        "message": "Not enough permissions to access /me GET ",
        "status": 403
    }
    

  • 对于 https://api.linkedin.com/v2/

    在官方文档中,标头有不同的要求:

    In official documentation there is difference requirements to headers:

    但是我都尝试了两次,但没有任何效果.

    But I tried both, and nothing worked.

    https://api.linkedin.com/v1/的请求(使用相同的令牌)成功返回数据.

    Requests to the https://api.linkedin.com/v1/ (using the same token) successfully return data.

    请告诉我我做错了.

    推荐答案

    您需要向LinkedIn申请权限.

    现在,所有对api.linkedin.com/v2/的请求都成功传递给我!

    在按地址在下面的地址留下一个请求,LinkedIn会回答您.

    Leave a request at the address below and LinkedIn will answer you.

    祝你好运!

    这篇关于对api.linkedin.com/v2/的任何查询都将返回“访问权限不足...".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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