Domanda

I've tried https://api.linkedin.com/v1/people/~/connections:(id,first-name,last-name,phone-numbers) but it's only get (id,first-name,last-name)

even this: http://api.linkedin.com/v1/people/id=UserId:(phone-numbers)

Does LinkedIn expose this field ? I've google it, but not found somewhere ..

È stato utile?

Soluzione

Linkedin Not provide phone numbers of connections. They only provide basic profile of connections. check here https://developer.linkedin.com/documents/connections-api

Altri suggerimenti

LinkedIn will provide the phone number if the user authorizes r_contactinfo

Sample Request URL:

https://api.linkedin.com/v1/people/~:(id,phone-numbers)?format=json

Sample JSON Response:

{
  "id": "ye3i9-_24l",
  "phoneNumbers":  {
    "_total": 1,
    "values":  [
       {
        "phoneNumber": "89xx189198",
        "phoneType": "mobile"
      }
    ]
  }
}

LinkedIn not provide phone number. Check this document for accessible fields of profile Basic Profile Fields

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top