Observed since 20 Oct, 19:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
352-uber
Uber API for NodeJS
NodeJS implementation of Uber API. The latest update has promise pattern implemented.
npm install uber-api
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);
});
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);
});
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
promiseEnvironment{
"local_name": "promise",
"alias": false,
"peer_metadata": null
} | ^6.1.0 | runtime |
requestEnvironment{
"local_name": "request",
"alias": false,
"peer_metadata": null
} | ^2.53.0 | runtime |
underscoreEnvironment{
"local_name": "underscore",
"alias": false,
"peer_metadata": null
} | ^1.8.2 | runtime |
chaiEnvironment{
"local_name": "chai",
"alias": false,
"peer_metadata": null
} | * | development |
gulpEnvironment{
"local_name": "gulp",
"alias": false,
"peer_metadata": null
} | ^3.8.11 | development |
gulp-jshintEnvironment{
"local_name": "gulp-jshint",
"alias": false,
"peer_metadata": null
} | ^1.9.4 | development |
gulp-mochaEnvironment{
"local_name": "gulp-mocha",
"alias": false,
"peer_metadata": null
} | ^2.0.0 | development |
gulp-utilEnvironment{
"local_name": "gulp-util",
"alias": false,
"peer_metadata": null
} | ^3.0.4 | development |
jshint-stylishEnvironment{
"local_name": "jshint-stylish",
"alias": false,
"peer_metadata": null
} | ^1.0.1 | development |
mochaEnvironment{
"local_name": "mocha",
"alias": false,
"peer_metadata": null
} | * | development |
Source distribution
{
"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="
}
]
}Observed since 20 Oct, 19:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:bef66876f973d11e341f25e05f4a82caaa4bc49e02ff50e28dc5f29d88a38cfa