lib/flightstats.js
function( options, callback ) {

    var self = this
    var url = '/ratings/rest/v1/json/flight/' + options.carrier + '/' + options.flightNumber

    var extensions = []

    if( Array.isArray( options.extendedOptions ) ) {
      extensions = extensions.concat( options.extendedOptions )
    }

    return this._clientRequest({
      url: url,
      extendedOptions: extensions,
      qs: {
        departureAirport: options.departureAirport,
        codeType: options.codeType,
      }
    }, function( error, data ) {
      callback.call( self, error, data )
    })

  }
function( options, callback ) {

    var self = this
    var url = '/ratings/rest/v1/json/flight/' + options.carrier + '/' + options.flightNumber

    var extensions = []

    if( Array.isArray( options.extendedOptions ) ) {
      extensions = extensions.concat( options.extendedOptions )
    }

    return this._clientRequest({
      url: url,
      extendedOptions: extensions,
      qs: {
        departureAirport: options.departureAirport,
        codeType: options.codeType,
      }
    }, function( error, data ) {
      callback.call( self, error, data )
    })

  }
function ( options , callback ) { var self = this var url = '/ratings/rest/v1/json/flight/' + options . carrier + '/' + options . flightNumber var extensions = [ ] if ( Array . isArray ( options . extendedOptions ) ) { extensions = extensions . concat ( options . extendedOptions ) } return this . _clientRequest ( { url : url , extendedOptions : extensions , qs : { departureAirport : options . departureAirport , codeType : options . codeType , } } , function ( error , data ) { callback . call ( self , error , data ) } ) }
Get ratings for a specified flight
@param {Object} options
@param {String} options.carrier
@param {String|Number} options.flightNumber
@param {Array<String>} [options.extendedOptions]
@param {Function} callback
@return {Request}
Get ratings for a specified flight