
集成也正常,用户登录也有效,但是我无法获取用户配置文件的数据,其中包含用户的所有记录,如教育,技能等.
成功登录后,我只能获得这四个值.
-名字
-site-标准轮廓请求
-姓
-标题
任何人都可以取得所有的价值而不是这些.
谢谢你.
演示应用程序来自 https://github.com/ResultsDirect/LinkedIn-iPhone
我们必须在“ – (RDlinkedInConnectionID *)profileForCurrentUser”这个函数中进行更改.
该功能位于linkedInClIEntlibrary – >课程 – > RDlinkedInEngine这个位置.
我们只需要更改以下网址即可获取数据.
NSURL* url = [NSURL URLWithString:[kAPIBaseURL stringByAppendingString:@"/v1/people/~/"]];
要获取用户个人资料数据,只需将网址更改为:
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))"]];
通过此URL,我们可以获取配置文件用户的数据.
要从用户个人资料中获取更多字段,请参阅以
https://developer.linkedin.com/documents/field-selectors
https://developer.linkedin.com/documents/profile-fields
要根据字段获取数据,我们必须提及该字段的父级和所需的字段.这在https://developer.linkedin.com/documents/profile-fields此链接中列出.
如果我们想要教育数据,那么我们必须提到
educations:(school-name,activitIEs)
教育将是父级,括号()中的其他数据是我们可以从个人资料中获取的字段.
希望这也适合你.
总结以上是内存溢出为你收集整理的ios – 在iPhone sdk中从LinkedIn获取用户个人资料数据全部内容,希望文章能够帮你解决ios – 在iPhone sdk中从LinkedIn获取用户个人资料数据所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)