Uber API Request错误消息:"此端点不支持该方法。",

时间:2016-10-17 07:53:19

标签: android api request uber-api

我想在我的Android应用程序中实现UBER API。

我正在使用this link for the APIthis link for the sandbox

标题授权:

Bearer <token>

参数:

start_latitude,start_longitude

我正在关注本教程,但收到错误消息:

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

为什么?

1 个答案:

答案 0 :(得分:0)

您如何授权您的用户?我建议您查看本教程:https://developer.uber.com/docs/ride-requests/guides/authentication/introduction#oauth-20

您的URL应包含scope=request参数,因为您要访问/ v1 / requests端点。另请注意,您可以使用请求范围,而无需最多5个开发人员的特权访问权限。您可以在开发人员信息中心中维护这些内容。