Socket
Socket
Sign inDemoInstall

@pablosanches/linkedin-sdk

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @pablosanches/linkedin-sdk

A simple sdk to consume the linkedin restful api


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

LinkedInSDK

Official API Docs

https://developer.linkedin.com/docs/guide/v2

Usage
const LinkedInSDK = require('linkedin-sdk');
const linkedin = new LinkedInSDK(clientID, clientSecret, redirectURI);

// Getting the authorization window link
let authURI = linkedin.getAuthUrl(['r_liteprofile'], 'state-param-here');

// Exchanging the authorization code by a access token
linkedin
    .setToken(token)
    .getAccessToken()
    .then(data => {})
    .catch(err => {})

// Refreshing the token
linkedin
    .setToken(token)
    .refreshToken()
    .then(data => {})
    .catch(err => {})

// Getting the token instrospection
linkedin
    .setToken(token)
    .tokenIntrospection()
    .then(data => {})
    .catch(err => {})

// Getting the user profile
linkedin
    .setToken(token)
    .getProfile()
    .then(profile => {})
    .catch(err => {})

Keywords

FAQs

Last updated on 07 Sep 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc