Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 18.104.22.168 release ready!
OAuth is an open standard for authorization, commonly used as a way for Internet users to authorise websites or applications to access their information on other websites but without giving them the passwords. These days OAuth is considered as the safest way to authorise and to get the user data from another resource server.
There are several famous servers around the world ( Like Facebook, Google, Linkedin, Twitter etc. ) on which most of the users are registered and these servers can be used to share the user data to other apps.
In this blog, We will talk about getting user data from Linkedin’s server using OAuth. There are several APIs provided by Linkedin to communicate with their server and request the user data as per the requirement.
For getting started you need to first register your app at here and get your Authentication Keys ( client_id and client_secret )
NOTE : DO NOT share your Client Secret value with anyone !!!
After getting your Authentication Keys, you need to make a GET request to the Linkedin API with your client_id to get an authentication code.
The request may look like :
After making a successful authorization request, You will receive an authorization code and this authorization code is used to exchange access token form Linkedin server.
This time you need to make a POST request to get the access token.
After making a successful AccessToken request, You will receive an access token and its expiry time. This access token is used in the next request to get the user data.
To retrieve basic information, Your request may look like :
To retrieve specific information, Your request may look like :
NOTE : format=json is to get the response in json format otherwise it will give the response in XML format.
After the above request you will receive the user data and can use it as per the requirement.
Thank you very much, This is Vedesh Kumar signing off … : )
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Webkul is a truly trusted and supported IT Company to develop business ideas for e-commerce. They provide professional support after deploying the solution to production and be responsible to act for fixing the reported issues or system errors. We highly encourage to deal with Webkul for business development.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.