领英V2 API完整档案

时间:2019-05-24 10:52:51

标签: api linkedin linkedin-api

我正在V1 API中使用链接来获取有关已验证用户的信息。我的应用程序具有r_fullprofile权限。

https://api.linkedin.com/v1/people~:(id,first-name,last-name,headline,picture-url,pictureUrls::(original),email-address,public-profile-url,industry,summary,specialties,phone-numbers,main-address,location:(name,country:(code)),positions:(id,title,summary,start-date,end-date,is-current,company:(id,name,type,size,industry,ticker)),educations:(id,school-name,field-of-study,start-date,end-date,degree,activities,notes,grade),associations,interests,num-recommenders,date-of-birth,publications:(id,title,publisher:(name),authors:(id,name,person),date,url,summary),patents:(id,title,summary,number,status:(id,name),office:(name),inventors:(id,name,person),date,url),languages:(id,language:(name),proficiency:(level,name)),skills:(id,skill:(name)),certifications:(id,name,authority:(name),number,start-date,end-date),courses:(id,name,number,occupation),recommendations-received:(id,recommendation-type,recommendation-text,recommender),honors-awards,three-current-positions,three-past-positions,volunteer)

现在,我正在迁移到V2 API,我无法提取所有个人资料信息。

我向https://api.linkedin.com/v2/me发出请求

我得到的信息很少,例如名字,姓氏,profilePicture,id

我也尝试使用

获取信息

https://api.linkedin.com/v2/me?fields=id,firstName,lastName,email-address

具有上述端点的

可以访问ID,名字和姓氏,而不是电子邮件。

https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,skills)-通过此端点,我可以访问ID,名字和姓氏,而不是技能

1 个答案:

答案 0 :(得分:0)

LinkedIn的v2 API默认情况下会返回简化的“精简”配置文件。要访问完整的个人资料,需要与LinkedIn建立合作伙伴关系。

  

此API将仅识别新的“ Lite Profile”权限,该权限支持减少的成员个人资料字段集。有关更多详细信息,请参见文档。

来源:https://engineering.linkedin.com/blog/2018/12/developer-program-updates