0
votes

im getting unauthorized error when calling https://sandbox-api.uber.com/v1/estimates/price

I'm using Auth0 and can successfully login with scopes profile request and all_trips.

I get the id.token from the result and pass it to client header

_authHeader = new AuthenticationHeaderValue("Bearer", token);
_client.DefaultRequestHeaders.Authorization = _authHeader;
1

1 Answers

2
votes

If using a server_token and not an oauth access token the header should be "Authorization: Token ". See the example in the curl guide.