简体   繁体   English

使用LinkedIn for iOS App获取公司参考

[英]Get Company References by using LinkedIn for iOS App

In my native iOS App, If user will Sign in with LinkedIn then I want to get references of that specific user. 在我的本机iOS App中,如果用户将使用LinkedIn进行登录,那么我想获取该特定用户的引用。 For example, If user wants to apply in XYZ company then i want to get user's all references that are already working in XYZ company. 例如,如果用户想在XYZ公司申请,那么我想获取用户已经在XYZ公司工作的所有参考。 Can it be possible by using provided LinkedIn APIs or with any other way? 可以通过使用提供的LinkedIn API或任何其他方式来实现吗?

Suggestions are much appreciated. 建议非常感激。 Thanks in advance 提前致谢

I just come up with one solution that i want to share with all of you. 我只想提出一种解决方案,我想与大家分享。

Call Connections API call with the required fields that you needed. 使用所需的必填字段来调用Connections API。 For example, you need following fields: 例如,您需要以下字段:

  1. id ID
  2. first-name 名字
  3. last-name
  4. headline 标题
  5. picture-url 图片网址

Now URL will be look like following: https://api.linkedin.com/v1/people/~/connections:(id,first-name,last-name,headline,picture-url)?oauth2_access_token=YOUR_ACCESS_TOKEN 现在,URL将如下所示: https : //api.linkedin.com/v1/people/~/connections :( id,名字,姓氏,标题,图片网址)?oauth2_access_token = YOUR_ACCESS_TOKEN

Response will be look like following: 响应如下所示:

<person>
<id>rXoyP_RKnr</id>
<first-name>First Name</first-name>
<last-name>Last Name</last-name>
<headline>Designation at Company</headline>
<picture-url>http://m.c.lnkd.licdn.com/mpr/mprx/0_MC0ebCSKkfIunfunUiMRb3opkDY2qfjnc6Icb3whUHEjIwo9zkfkdT0aE_O-BHpsZTjneQM-h6tR</picture-url>
</person>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM