Skip to content

How to get your LinkedIn Access Token

Frederik Van Lierde edited this page Aug 31, 2022 · 1 revision

To use the LinkedIn API, you need to provide the Access Token when creating the LinkedInHelper object.

Steps

  1. Create an App on LinkedIn https://www.linkedin.com/developers/apps
  2. Once created, go to the Auth tab
  3. Click OAuth 2.0 tools
  4. Click Create Token
  5. Select Member Authorization + r_liteprofile + w_member_social
  6. Click the Request Access Token button

Where to use the access code in the code?

The created access token will be used to create an instance of the LinkedInHelper object

 using CodeHelper.API.LinkedIn;
 LinkedInHelper _helper = new() {AuthorID= "{AuthorID}", AccessToken ="{AccessToken}" };

Clone this wiki locally