在iPhone中从LinkedIn获取用户个人资料数据sdk
使用IOS,我试图将LinkedIn整合到应用程序中。 该集成也正常工作,用户登录也在工作,但我无法获取用户个人资料的所有记录作为教育,技能和所有的数据。 成功登录后,我只能得到这四个值。 负一名称 上门-标准轮廓请求 -last名 -headline在iPhone中从LinkedIn获取用户个人资料数据sdk
任何人都可以请把所有的值,而不是这些。 非常感谢。
问题是在登录后从LinkedIn获取配置文件数据。 演示应用程序是从https://github.com/ResultsDirect/LinkedIn-iPhone
我们必须在“ - (RDLinkedInConnectionID *)profileForCurrentUser”这个函数中进行修改。 该函数位于LinkedInClientLibrary - > Classes - > RDLinkedInEngine这个位置。
我们只需更改以下网址即可获取数据。
NSURL* url = [NSURL URLWithString:[kAPIBaseURL stringByAppendingString:@"/v1/people/~/
"]];
,以获取用户配置文件数据只是URL更改为:
NSURL* url = [NSURL URLWithString:[kAPIBaseURL stringByAppendingString:@"/v1/people/~:(id,first-name,last-name,maiden-name,formatted-name,phonetic-last-name,location:(country:(code)),industry,distance,current-status,current-share,network,skills,phone-numbers,date-of-birth,main-address,positions:(title),educations:(school-name,field-of-study,start-date,end-date,degree,activities))"]];
从这个网址就可以进行个人资料的用户的数据。
为了获得更多的领域,从用户配置文件是指这些链接:
https://developer.linkedin.com/documents/field-selectors https://developer.linkedin.com/documents/profile-fields
要根据字段中的数据得到我们不得不提到领域的父母和that.This所需的字段列在https://developer.linkedin.com/documents/profile-fields此链接。
如果我们想从教育方面的数据,所以我们不得不提到的
educations:(school-name,field-of-study,start-date,end-date,degree,activities)
的教育将在括号中的父母和其他数据()是它的领域,我们可以从配置文件中看到。
希望这会和你一起工作。
微给出的上述解释是正确的蚂蚁适当
要想从LinkedIn的电子邮件ID只改变URL
NSURL *url = [NSURL URLWithString:@"http://api.linkedin.com/v1/people/~:(id,first-name,last-name,maiden-name,email-address,formatted-name,phonetic-last-name,location:(country:(code)),industry,distance,current-status,current-share,network,skills,phone-numbers,date-of-birth,main-address,positions:(title),educations:(school-name,field-of-study,start-date,end-date,degree,activities))"];
,你会得到
,或者您想了解更多的电子邮件帮助你可以按照堆栈溢出连接 Not able to fetch Linked connections EMAIL ID
感谢它.. – Warewolf 2012-10-05 07:39:53
from last som e小时我正在搜索这个东西,但最后我从这里得到了解决方案。谢谢。 – 2013-11-20 09:58:06