Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS 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 184.108.40.206 release ready!
Owner and Founder. Opencart
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.
When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.