code: function(method, username, privateKey, sandbox) {
    return function(uri, data, cb) {
      if (typeof data === 'function') {
        cb = data;
        data = {};
      } else if (['string', 'number'].indexOf(typeof data) !== -1) {
        data = { id: data };
      }
      
      var options = {
        method: method,
        uri: (sandbox ? SANDBOX_API_URL : API_URL) + uri,
        headers: { 
          Accept: 'application/json',
          'Content-Type': 'application/json',
          Authorization: 'ApiKey ' + username + ':' + privateKey
        }
      };
      //If no params in URL, close with /
      if(options.uri.indexOf('?') === -1) options.uri += '/';
      
      // Add data to request
      if (method === 'GET' || method === 'DELETE') options.qs = data || {};
      else options.body = JSON.stringify(data) || {};
  
      request(options, globalResponseHandler(cb));
    };
  }
docs: // REQUEST HANDLERS //