Linkedin.getLoginUrl()

Creates the login url used to gain acccess to their LinkedIn account.

Usage

Hover over inputs/exits for more info.

var Linkedin = require('machinepack-linkedin');


// Creates the login url used to gain acccess to their LinkedIn account.

Linkedin.getLoginUrl({

client_id: '12345678',

redirecturl: 'https://localhost/url',

scope: 'r_fullprofile%20r_emailaddress%20w_share',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

client_id required

API key that is given to you when you register your application.

'12345678'
redirecturl required

Url used to redirect users once they finish using the link.

'https://localhost/url'
scope

A URL-encoded, space delimited list of member permissions your application is requesting on behalf of the user. If you do not specify a scope in your call, we will fall back to using the default member permissions you defined in your application configuration.

'r_fullprofile%20r_emailaddress%20w_share'

Exits

error

An unexpected error occurred.

success

OK.