LinkedIn新API-无法获得r_network权限 [英] LinkedIn New API - Can't Get r_network Permission

查看:199
本文介绍了LinkedIn新API-无法获得r_network权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了一个用旧的LinkedIn API编写的程序,我正尝试将其迁移到新的API.当我尝试获得r_basicprofile权限时,我的oauth令牌有效.但是,当我尝试r_networkrw_nus时,会得到响应

I inherited a program that was written with the old LinkedIn API, and I'm trying to migrate it to the new API. When I try to get the r_basicprofile permission, my oauth token works. However, when I try r_network or rw_nus, I get a response

无效范围-您的应用未获得授权 r_network.

invalid scope -- your application has not been authorized for r_network.

但是,当我转到www.linkedin.com/developer/apps/xxxx/auth时,选中了r_networkrw_nus的框.

Yet, when I go to www.linkedin.com/developer/apps/xxxx/auth, the boxes for r_network and rw_nus are checked.

即,一个请求

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

给出该错误.我究竟做错了什么?

gives that error. What am I doing wrong?

推荐答案

从5月15日

宽限期到期后,多个REST API端点将不再可用于一般用途.以下端点是唯一可以继续使用的端点:

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}

如果您的应用程序当前正在使用任何其他API服务(例如,连接,组,人员搜索,邀请,工作搜索等),则您必须申请成为相关合作伙伴计划的成员,该计划提供必要的API访问权限继续利用上面未列出的任何端点.

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_basicprofiler_emailaddressrw_company_adminw_share:


It looks like linkedin no longer wants to share anything with their API. Creating a new app indicates that the only possible options are r_basicprofile, r_emailaddress, rw_company_admin, and w_share:

TLDR:他们已锁定API,并将使用范围限制在极为有限的一组访问点中.

这篇关于LinkedIn新API-无法获得r_network权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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