php - 如何使用 linkedin Rest API 从个人资料 url 获取公共(public)个人资料详细信息

标签 php linkedin-api

我正在尝试使用 linkedin 公共(public)个人资料 url 获取用户的完整信息,但我得到了名字、姓氏和 ID 作为响应。

如何获取完整详细信息。

我已经尝试过 linkedin 控制台

https://api.linkedin.com/v1/people/url=https%3a%2f%2fwww.linkedin.com%2fin%2fashishmishraoft?format=json

Response
{
  "firstName": "Ashish",
  "headline": "Sr PHP Developer at Myapp Generation.",
  "id": "STaDeFHBBN",
  "lastName": "Mishra"
}

最佳答案

LinkedIn does not return all possible member profile fields that are available to you by default. There is a limited selection of additional member fields that are also available to you which may be relevant to your application. Refer to the Basic Profile Fields page for a complete list of the basic member profile fields.

The following example demonstrates how to customize your API call to request specific member profile fields that you wish to be returned during the Sign In with LinkedIn workflow:

GET https://api.linkedin.com/v1/people/~:(id,num-connections,picture-url)?format=json

sample api response:

{
    "id": "1R2RtA",
    "numConnections": 42,
    "pictureUrl": "https://media.licdn.com/mpr/mprx/…"
} 

https://developer.linkedin.com/docs/signin-with-linkedin

关于php - 如何使用 linkedin Rest API 从个人资料 url 获取公共(public)个人资料详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45255518/

相关文章:

php - 如何使用日期无条件连接两个表?

php - 在结帐页面上更改送货方式时会触发哪种方法或操作 Hook ?

php - 如何在分页系统 PHP/MySQL 中限制页面?

linkedin - 是否可以使用 Linkedin Api 获取所有 Linkedin 个人资料帖子

wordpress - LinkedIn 分享帖子无法正常工作,并给出错误消息 : 'It' s not you it's us,,请再试一次。”

php - 功能测试失败,csrf_protection = true

javascript - 使用 Linkedin API 检索我的个人资料信息

jquery - LinkedIn 分享按钮仅出现在 AngularJS 应用程序的初始加载中

linkedin-api - 专业字段已从 LinkedIn API 中删除?

php - 调用未定义的数组元素显示另一个已定义元素的值