WePay.appDetails()

Get details about a WePay application.

Look up details about a WePay application by client id and secret

Usage

Hover over inputs/exits for more info.

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


// Get details about a WePay application.

WePay.appDetails({

clientId: 123456,

clientSecret: '6446c521bd',

useProduction: false,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

clientId required

The integer client ID issued to the app, found on your application's dashboard

123456
clientSecret required

The string client secret issued to the app, found on your application's dashboard

'6446c521bd'
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.

{ api_version: 567235,
  client_id: '604f39f41e364951ced74070c6e8bfa49d346cdfee6191b03c2c2d9c9cda9184',
  state: 'BEARER',
  status: 1209600,
  theme_object: {},
  gaq_domains: '' }