0
votes

I want to implement UBER API into my android application.

I am using this link for the API and this link for the sandbox

In the header Authorization:

Bearer <token>

In the parameter:

start_latitude,start_longitude

I am following the tutorial, but I am getting an error message:

{"message":"Requires at least one scope. Available scopes: ","code":"unauthorized"}

Why is that?

1
Quick google and it comes up with this: developer.uber.com/docs/ride-requests/tutorials/api/… The key things you need to know about OAuth can all be found in your application dashboard. client_id and client_secret available on the settings tab. redirect_uri and scope you specify on the authorizations tab. Think you need to have a look inside the application dashboard - Draken
on the Authorization tab GENERAL SCOPES are activated - ajit

1 Answers

0
votes

How do you authorize your users? I'd recommend to check out this tutorial: https://developer.uber.com/docs/ride-requests/guides/authentication/introduction#oauth-20

Your URL should include the scope=requestparameter since you want to access the /v1/requests endpoint. Also keep in mind that you can use the request scope without having privileged access for up to 5 developers. You can maintain these in your developer dashboard.