use*_*012 4 xcode linkedin ios
使用IOS,我试图将LinkedIn集成到应用程序中.集成也正常,用户登录也有效,但是我无法获取用户配置文件的数据,其中所有用户记录为Education,Skills等.成功登录后,我只能获得这四个值.-first-name -site-standard-profile-request -last-name -headline
任何人都可以取得所有的价值而不是这些.谢谢,谢谢.
use*_*012 12
问题是登录后从LinkedIn获取个人资料数据.演示应用程序来自https://github.com/ResultsDirect/LinkedIn-iPhone
我们必须在" - (RDLinkedInConnectionID*)profileForCurrentUser"这个函数中进行更改.该函数位于LinkedInClientLibrary - > Classes - > RDLinkedInEngine这个位置.
我们只需要更改以下网址即可获取数据.
NSURL* url = [NSURL URLWithString:[kAPIBaseURL stringByAppendingString:@"/v1/people/~/
"]];
Run Code Online (Sandbox Code Playgroud)
要获取用户个人资料数据,只需将网址更改为:
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))"]];
Run Code Online (Sandbox Code Playgroud)
通过此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,field-of-study,start-date,end-date,degree,activities)
Run Code Online (Sandbox Code Playgroud)
教育将是父母,括号()中的其他数据是我们可以从个人资料中获得的字段.
希望这也适合你.
| 归档时间: |
|
| 查看次数: |
9557 次 |
| 最近记录: |