【问题标题】:Uber API Request error message: "Method not supported for this endpoint.",Uber API 请求错误消息:“此端点不支持方法。”,
【发布时间】:2017-02-26 03:00:13
【问题描述】:

我想在我的 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"}

这是为什么呢?

【问题讨论】:

  • 快速谷歌,它提出了这个:developer.uber.com/docs/ride-requests/tutorials/api/… 您需要了解的有关 OAuth 的关键信息都可以在您的应用程序仪表板中找到。 client_id 和 client_secret 在设置选项卡上可用。 redirect_uri 和 您在授权选项卡上指定的范围。 认为您需要查看应用程序仪表板内部
  • 在“授权”选项卡上“通用范围”已激活

标签: android api request uber-api


【解决方案1】:

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

您的 URL 应包含 scope=request参数,因为您要访问 /v1/requests 端点。另请记住,您可以使用请求范围,而无需拥有最多 5 名开发人员的特权访问权限。您可以在开发者仪表板中维护这些。

【讨论】:

    猜你喜欢
    • 2015-11-21
    • 2015-08-03
    • 1970-01-01
    • 2021-06-17
    • 2021-12-23
    • 1970-01-01
    • 1970-01-01
    • 2018-04-13
    • 2016-05-04
    相关资源
    最近更新 更多