WePay.userDetails()

Look up details about a user by access token.

Look up the details of the user associated with the access token you are using to make the call.

Usage

Hover over inputs/exits for more info.

var WePay = require('machinepack-wepay');


// Look up details about a user by access token.

WePay.userDetails({

accessToken: '604f39f41e364951ced74070c6e8bfa49d346cdfee6191b03c2c2d9c9cda9184',

useProduction: false,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

accessToken required

The string access token of the user you want to send confirmation to.

'604f39f41e364951ced74070c6e8bfa49d346cdfee6191b03c2c2d9c9cda9184'
useProduction

Use WePay production API - payments will be charged. Defaults to WePay staging - payments are not charged.

false

Exits

error

An unexpected error occurred.

success

OK.

{ user_id: 12345,
  first_name: 'Bill',
  last_name: 'Clerico',
  email: 'api@wepay.com',
  state: 'registered',
  callback_uri: 'https://www.everribbon.com/ipn/12345' }