Raspberry Pi/node_modules/orchestrate/lib/client.js
/**
 * Creates an instance of Client which can be used to access
 * the Orchestrate API.
 *
 * @constructor
 * @param {string} token
 */
Creates an instance of Client which can be used to access
the Orchestrate API.

@constructor
@param {string} token
Creates an instance of Client which can be used to access the Orchestrate API . @constructor @param { string } token
function Client (token) {
  assert(token, 'API key required.')
  if (!(this instanceof Client)) {
    return new Client(token)
  }
  this.contentType = 'application/json'
  this._token = token
  this._userAgent = 'orchestrate.js/' + pjson.version + ' (Bowery.io; node.js client)'
}
function Client ( token ) { assert ( token , 'API key required.' ) if ( ! ( this instanceof Client ) ) { return new Client ( token ) } this . contentType = 'application/json' this . _token = token this . _userAgent = 'orchestrate.js/' + pjson . version + ' (Bowery.io; node.js client)' }
Creates an instance of Client which can be used to access
 the Orchestrate API.
Creates an instance of Client which can be used to access the Orchestrate API .
/**
   * HTTP content-type.
   * @type {string}
   */ /**
   * API token used for HTTP Authentication.
   * @type {string}
   * @protected
   */ /**
   * Identifies the orchestrate.js client as the UserAgent to Orchestrate Service.
   * @type {string}
   * @protected
   */