code: function client(config) {
    /*jshint validthis:true */
  
    // Validate config
    assert.equal(typeof config, 'object',
      'You must specify the endpoint url when invoking this module');
    if (!config.url) {
      config.url = config.apiURL;
    }
    assert.ok(/^https?:/.test(config.url), 'url is not valid');
  
    this.config = config;
  
    return this;
  }
docs: Global