Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get user profile using Oauth 2.0 from LinkedIn API

I want to implement "sign up using LinkedIn" functionality ,I followed this document and stuck at point b with this error instead of getting access token. https://developer.linkedin.com/documents/authentication

{
    "error": "invalid_request",
    "error_description": "missing required parameters, includes an invalid parameter value, parameter more then once. : client_id"
}

I want to fill user basic information in registration form e.g. firstname,lastname,email etc. I dont want to use javascript API,and need to go with REST API of linkedIn ,

like image 306
Hardik Bhalani Avatar asked Jul 10 '13 13:07

Hardik Bhalani


People also ask

What data can you extract from LinkedIn API?

Using the API for LinkedIn, you can get detailed information about LinkedIn groups based on the ID of the target groups. Below are some of the data you can get: ID, name, date of creation, logo, description, location, industries, etc. Learn more in the LinkedIn API documentation.


2 Answers

This return a json file with the user info: https://api.linkedin.com/v1/people/~?oauth2_access_token=value&format=json

For a specify value: https://api.linkedin.com/v1/people/~:(firstName,lastName,picture-url)?oauth2_access_token=value&format=json

like image 90
user3099761 Avatar answered Sep 22 '22 08:09

user3099761


Please refer the following,

http://www.bigcode.net/2013/08/linkedin-share-api-usage-using-oauth2.html

It has the details on using OAuth2 and accessing one of the api.

The code may be used for authentication. Once you are authenticated, you can use the Profile api mentioned here

http://developer.linkedin.com/documents/profile-api to get the profile details.

like image 26
SanS Avatar answered Sep 22 '22 08:09

SanS