I'm using the uber api to make requests to the sandbox. Specifically, I'm using the node-uber library from here:https://github.com/shernshiou/node-uber
When I try to set the surge multiplier, using the following code snippet:
uber.products.setSurgeMultiplierByID('90475b1e-382e-437f-a50f-d9ac28c150c8', 2.2, function (err, res) {
if (err) console.error("error" + err);
else console.log("surge success" + res);
});
And then I make a request:
uber.requests.create({
"start_latitude": lat,
"start_longitude": longitude,
}, function (err, res) {
if (err) console.error(err);
else console.log(res);
});
I see in the response that the surge multiplier is still 1.0
What am I doing wrong? And also, is the uber sandbox supposed to hold a state between my PUT request to the sandbox and my request to call an uber? How does it save that state specifically for me? Is it based on my auth token?
Thanks!