0% found this document useful (0 votes)
38 views8 pages

How To Use Linkedin Apis

This document outlines the steps to use LinkedIn APIs, including signing in with LinkedIn, sharing to LinkedIn, and managing company pages. It describes creating a LinkedIn application, requesting an authorization code, exchanging the code for an access token, retrieving a user's profile, and sharing content to LinkedIn by posting to a specific API endpoint.

Uploaded by

Shubham Raizada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views8 pages

How To Use Linkedin Apis

This document outlines the steps to use LinkedIn APIs, including signing in with LinkedIn, sharing to LinkedIn, and managing company pages. It describes creating a LinkedIn application, requesting an authorization code, exchanging the code for an access token, retrieving a user's profile, and sharing content to LinkedIn by posting to a specific API endpoint.

Uploaded by

Shubham Raizada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

How to use LinkedIn APIs

Scope
• Sign In with LinkedIn, Share with
LinkedIn and Manage Company Pages with
LinkedIn.
Steps
• Create a linkedin application
• https://docs.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-
flow?context=linkedin/context
• https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-
linkedin?context=linkedin/consumer/context
• https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-
linkedin?context=linkedin/consumer/context
Request an authorization code
• https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=xxxxxxxx&redir
ect_uri=https://www.yoursite.com/oauth2/callback&state=fooobar&scope=r_liteprofile%20r_emai
laddress%20w_member_social
Exchange authorization code for an
access token
• POST /oauth/v2/accessToken HTTP/1.1
• Host: www.linkedin.com
• Content-Type: application/x-www-form-urlencoded
• grant_type=authorization_code&code=987654321&redirect_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.myapp.co
m%2Fauth%2Flinkedin&client_id=123456789&client_secret=shhdonottell
Retrieve profile

Store this URN


Share
• https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-
linkedin?context=linkedin/consumer/context
• Too big a page.. See the link
scope

You might also like