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": "0447bc1ff45217b230ce43f0fad30999eeb3b2f9",
"tarball": "https://registry.npmjs.org/352-uber/-/352-uber-0.0.2.tgz",
"integrity": "sha512-AeEf9jWWRYh+Ve6aDbQ/PmOKewLl6xaWcPnTmzbiFgP1stFfXoTb5lm73NJKz10/kyX+mgCj9MT2t9nNHs7URw==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQDuywx+0x+IRz7ZoLgF/c2SuGUtz1co8bfdur73s7G7EgIgIcb4buAMmq1AL+7m6i8L3GAONtAfNUPUTFd52GT6LYY="
}
]
}Observed since 20 Oct, 19:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:cd160ba3065161471f45cc94c1875812a8f87cbf52b5ebdcd62e41a41e4bc4d2