我继承了一个用旧的 LinkedIn API 编写的程序,我正在尝试将它迁移到新的 API。当我尝试获取 r_basicprofile
时许可,我的 oauth token 有效。但是,当我尝试时 r_network
或 rw_nus
,我得到了回应
invalid scope -- your application has not been authorized for r_network.
然而,当我去
www.linkedin.com/developer/apps/xxxx/auth
,盒子为 r_network
和 rw_nus
被检查。即,请求
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=xxxxxx&scope=r_basicprofile&state=yyyy&redirect_uri=http%3A%2F%2Fkalatublog.com%2Fwp-content%2Fmu-plugins%2Fimb-en%2Fhelpers%2Fsocial-connect%2Fapi%2Ffinalize.php%3Fapi%3Dlinkedin%26ch%zzzzz
有效,但要求
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=xxxxxx&scope=r_network&state=yyyy&redirect_uri=http%3A%2F%2Fkalatublog.com%2Fwp-content%2Fmu-plugins%2Fimb-en%2Fhelpers%2Fsocial-connect%2Fapi%2Ffinalize.php%3Fapi%3Dlinkedin%26ch%zzzzz
给出了那个错误。我究竟做错了什么?
最佳答案
After the grace period expires, several REST API endpoints will no longer be available for general use. The following endpoints are the only ones that will remain available for use:
Profile API — /v1/people/~ `
Share API — /v1/people/~/shares
Companies API — /v1/companies/{id}
If your application is currently using any other API services (e.g. Connections, Groups, People Search, Invitation, Job Search, etc.) you will have to apply to become a member of a relevant Partner Program that provides the necessary API access to continue to leverage any of the endpoints that are not listed above.
看起来linkedin 不再想与他们的API 共享任何东西。创建一个新的应用程序表明唯一可能的选项是
r_basicprofile
, r_emailaddress
, rw_company_admin
, 和 w_share
:TLDR:他们已经锁定了 API,并将使用限制在极其有限的访问点集上。
关于LinkedIn 新 API - 无法获得 r_network 权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30241229/