nl_tokens: FACTORY // FUNCTION : factory ( options clbk ) Returns a function for sending a POST request to a Travis CI API endpoint .
pl_tokens: function factory ( options , clbk ) { var opts ; var err ; opts = copy ( defaults ) ; err = validate ( opts , options ) ; if ( err ) { throw <mask> ; } if ( opts . port === null ) { if ( opts . protocol === 'https' ) { opts . port = DEFAULT_HTTPS_PORT ; } else { opts . port = DEFAULT_HTTP_PORT ; } } if ( ! isFunction ( clbk ) ) { throw new TypeError ( 'invalid input argument. Callback argument must be a function. Value: `' + clbk + '`.' ) ; } /**
  	* FUNCTION: post( [data] )
  	*	Sends a POST request to an endpoint.
  	*
  	* @param {String|Object} [data] - request data
  	* @returns {Void}
  	*/ return function post ( data ) { var d ; if ( arguments . length && ! isString ( data ) && ! isObject ( data ) ) { throw new TypeError ( 'invalid input argument. Request data must be either a string or an object. Value: `' + data + '`.' ) ; } d = data || '' ; query ( d , opts , done ) ; } ; // end FUNCTION post() /**
  	* FUNCTION: done( error, results )
  	*	Callback invoked after completing query.
  	*
  	* @private
  	* @param {Error|Null} error - error object
  	* @param {Object[]} results - query results
  	* @returns {Void}
  	*/ function done ( error , results ) { if ( error ) { return clbk ( error ) ; } clbk ( null , results ) ; } // end FUNCTION done() }