raj_tx
raj_tx

Reputation: 239

JSON api response from the linkedin

Using the below URL I have got the profile response from linkedin in the form of XML.

this.http.get('https://api.linkedin.com/v1/people/~?oauth2_access_token='+token,{headers: headers})

How can I get the response in JSON format? I have tried with the URL but I'm getting the error.

https://api.linkedin.com/v1/people/~?format=json~?oauth2_access_token=

Upvotes: 1

Views: 827

Answers (1)

Madhan Varadhodiyil
Madhan Varadhodiyil

Reputation: 2116

format should be sent as query parameter:

Try:

https://api.linkedin.com/v1/people/~?format=json&oauth2_access_token=xxxx

Upvotes: 1

Related Questions