I am testing my app for the first time, just trying to get basic info via the API but am getting an error: 422 Unprocessable Entity, "validation_failed".
What am I missing here? I have tried it with both sandbox-api.uber.com and with api.uber.com.
getting back:
code: "validation_failed" fields: {start_longitude:Required, start_latitude:Required} start_latitude: "Required" start_longitude: "Required" message: "Invalid request"
var uberServerToken = "XXXXXXXXcEE0cHbwhKiF_sl_ZUYvEHHO_f6U6dr" ;
$http({
url: "https://api.uber.com/v1/estimates/time" ,
headers: {
Authorization: "Token " + uberServerToken
},
data: {
start_latitude: setLat,
start_longitude: setLon
},
success: function(result) {
console.log(result);
}
});