Salesforce.getUserByAccessToken()

Get information about the Salesforce user with the specified access token.

Usage

Hover over inputs/exits for more info.

var Salesforce = require('machinepack-salesforce-expanded');


// Get information about the Salesforce user with the specified access token.

Salesforce.getUserByAccessToken({

id: 'https://login.salesforce.com/id/29ZXzEAM/005j0Xz00C7enEAM/00000C7enf00C7enAAB',

accessToken: 'AQDvCav5zRSafS795TckAerUV53xzgqRyrcfYX2i_PJF9QOe_md7h5hy2gMhOS6TL9IBk5qxMA2q_8EJxGPTqEbmTqOBqqCIOlvPEPCeIiy21VD9_Y',

tokenType: 'Bearer',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

id required

The URL used to get user information witht he specified access token.

'https://login.salesforce.com/id/29ZXzEAM/005j0Xz00C7enEAM/00000C7enf00C7enAAB'
accessToken required

'AQDvCav5zRSafS795TckAerUV53xzgqRyrcfYX2i_PJF9QOe_md7h5hy2gMhOS6TL9IBk5qxMA2q_8EJxGPTqEbmTqOBqqCIOlvPEPCeIiy21VD9_Y'
tokenType required

'Bearer'

Exits

error

An unexpected error occurred.

success

OK.