lib/Api.js
function (method, path, params) {
    return this._request.request({
      hostname: this.host,
      path: '/v1/' + path,
      method: method,
      headers: {
        'Content-Type': 'application/json',
        'X-API-ACCESS-TOKEN': this.token
      }
    }, params);
  }
function (method, path, params) {
    return this._request.request({
      hostname: this.host,
      path: '/v1/' + path,
      method: method,
      headers: {
        'Content-Type': 'application/json',
        'X-API-ACCESS-TOKEN': this.token
      }
    }, params);
  }
请求函数
@param {string} method
@param {string} path
@param {object} params
@returns {Object<Promise>}