docs: function makeRequest (path, params) {
      // The api key will always be sent as a query parameter
      params = params || {}
      params.token = apiKey
  
      return new Promise(function (resolve, reject) {
        request(`${hostname}${path}?${querystring.stringify(params)}`,
          function (error, response, body) {
            if (error) {
              reject(error)
            }
            try {
              var result = JSON.parse(body)
              if (response.statusCode === 200) {
                resolve(result)
              }
              reject(result.error)
            } catch (error) {
              reject(response.statusMessage)
            }
          })
      })
    }