0

我在我的网站上使用linkedin share api进行用户登录。登录时,我从链接的配置文件中获取用户的一些信息。并且即使用户使用这些字段更新了我的个人资料,也不会返回某些字段的值。

我将范围设置为'r_basicprofile r_emailaddress rw_nus'

我的链接获取参数代码如下

$user = fetch('GET', '/v1/people/~:(id,firstName,lastName,headline,picture-url,email-address,skills,public-profile-url,industry,positions:(title,start-date,end-date,is-current,company:(id,name,size)),languages:(id,language,proficiency),num-recommenders,volunteer,educations,certifications:(id,name),publications:(id,title))');

我能够获取几乎所有字段的值,但无法获取语言、出版物等字段的值。

我的脚本有什么问题吗,或者我必须为此使用一些特殊的方法,正如我在谷歌上搜索的那样,我找到了与我正在做的相同的解决方案。

4

1 回答 1

1

对于语言和出版物,您需要r_fullprofile范围。

有关需要完整配置文件的字段列表,请参阅https://developer.linkedin.com/documents/profile-fields#fullprofile

于 2013-07-08T10:34:29.500 回答