我想在我的Android应用程序中实现UBER API。
我正在使用this link for the API和this link for the sandbox
标题授权:
Bearer <token>
参数:
start_latitude,start_longitude
我正在关注本教程,但收到错误消息:
{"message":"Requires at least one scope. Available scopes: ","code":"unauthorized"}
为什么?
答案 0 :(得分:0)
您如何授权您的用户?我建议您查看本教程:https://developer.uber.com/docs/ride-requests/guides/authentication/introduction#oauth-20
您的URL应包含scope=request
参数,因为您要访问/ v1 / requests端点。另请注意,您可以使用请求范围,而无需最多5个开发人员的特权访问权限。您可以在开发人员信息中心中维护这些内容。