首页 > 解决方案 > 获取 Connections API 需要哪些权限?

问题描述

目前我登录

https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id[myclientid]&state=invite&redirect_uri=http://127.0.0.1:8081&scope=r_basicprofile+rw_company_admin+w_share

然后我在 Postman 中发出 OAuth GET 请求

https://www.linkedin.com/oauth/v2/accessToken?code[accesstokengivenfrompreviousrequest]&client_secret[mysecretclient]&client_id[myclientid]&redirect_uri=http://127.0.0.1:8081&grant_type=authorization_code

然后我在 Postman 中为我的连接发出 GET 请求,就像他们在这里给我的例子一样

https://api.linkedin.com/v2/connections?q=viewer&count=50

这些是我的结果

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

这里的页面说:

“要使用 Connections API,您必须请求访问令牌才能代表成员进行经过身份验证的调用。”

并且给定的权限是:r_1st_connections&r_compliance所以当我尝试将这些权限添加到我发布的第一个登录链接时,它说它不在我能做的范围内。因此,我尝试查找这些权限所需的内容,然后转到2-legged3-legged权限页面,其中没有任何权限或它们需要什么。

那么我如何访问r_1st_connections& r_compliance

并为我省去麻烦,因为如果您知道,那么您可能会知道我是否可以从我的r_1st_connections.

标签: linkedin

解决方案


推荐阅读