Catalog npm
Back to packageRELEASE DETAILS

0.0.3

npm

352-uber

Uber API for NodeJS

apiuber
Published22 Jul 2015
Direct dependencies10
Transitive dependenciesNot calculated

README

Current package documentation

uber-api

NodeJS implementation of Uber API. The latest update has promise pattern implemented.

Installation

npm install uber-api

Usage

var Uber = require('uber-api')({server_token:'YOUR SERVER TOKEN',version:'v1'}),
    lat = 36,
    lon = -94;

Uber.getProducts(lat, lon, function(error, response) {
  if (error) {
    console.log(error);
  } else {
    console.log(response);
  }
});

Uber.getProducts(lat, lon).then(function(response){
  console.log(response);
}, function(error){
  console.error(response);
});

API Reference

getProducts(latitude, longitude[, callback])
getPriceEstimate(start_latitude, start_longitude, end_latitude, end_longitude[, callback])
getTimeEstimate(start_latitude, start_longitude [,customer_uuid] [,product_id][, callback])
getPromotions(start_latitude, start_longitued, end_latitude, end_longitued [, callback])
+getMe([callback])
+†getHistory([callback])

+These require special tokens you can get via OAuth2. You can then initialize Uber with {bearer_token:'YOUR BEARER TOKEN',version:'v1'}.

† This functionality inspects the version passed in and if it is "v1" will auto adjust to "v1.1". As per the Uber documentation (https://developer.uber.com/v1/endpoints/#user-activity-v1) v1 requires special permission to use. This library currently assumes this permission is not in place.

Rate limit state is returned as a member of the response object.

Uber.getProducts(lat, lon).then(function(response){
  console.log(response.rate_limit);
});

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 10

Native requirements
10 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
promise
Environment
{
  "local_name": "promise",
  "alias": false,
  "peer_metadata": null
}
^6.1.0runtime
request
Environment
{
  "local_name": "request",
  "alias": false,
  "peer_metadata": null
}
^2.53.0runtime
underscore
Environment
{
  "local_name": "underscore",
  "alias": false,
  "peer_metadata": null
}
^1.8.2runtime
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
*development
gulp
Environment
{
  "local_name": "gulp",
  "alias": false,
  "peer_metadata": null
}
^3.8.11development
gulp-jshint
Environment
{
  "local_name": "gulp-jshint",
  "alias": false,
  "peer_metadata": null
}
^1.9.4development
gulp-mocha
Environment
{
  "local_name": "gulp-mocha",
  "alias": false,
  "peer_metadata": null
}
^2.0.0development
gulp-util
Environment
{
  "local_name": "gulp-util",
  "alias": false,
  "peer_metadata": null
}
^3.0.4development
jshint-stylish
Environment
{
  "local_name": "jshint-stylish",
  "alias": false,
  "peer_metadata": null
}
^1.0.1development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
*development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "99d0251a6bde8fd098f5059caf2f036b378f1b70",
  "tarball": "https://registry.npmjs.org/352-uber/-/352-uber-0.0.3.tgz",
  "integrity": "sha512-2Ixyj89HyxRVeXlUWc2mAu2Yqr++mIQQmos8xzmOxoGJYio8A8skjDdmTpOsSjau8hdIeVHCbKRjQn0Dv9GpOQ==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQCiD9Y4aIvvrStNAJH5SQ7gPlJ29clo6G95QjYAA1XDTQIgWRH4iOtdpWHkhmWFDm7hY/VVmMixpW0EL69o0G/pLmc="
    }
  ]
}

Repository

PENDING
352media/352-uber

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:26 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:bef66876f973d11e341f25e05f4a82caaa4bc49e02ff50e28dc5f29d88a38cfa

Other collected versions

0.0.422 Jul0.0.222 Jul0.0.122 JulView all collected versions →