Uber API - 缺少范围:请求

Geo*_*ell 9 uber-api

我正在使用我的帐户的持票人令牌(这是Uber应用程序的管理员)向https://sandbox-api.uber.com/v1/requests请求.

当我提出请求时,我得到401:

{
    "message": "Missing scope: request",
    "code": "unauthorized"
}
Run Code Online (Sandbox Code Playgroud)

正如我所说,我所拥有的access_token是针对注册为应用管理员的电子邮件地址,所以这个请求应该正常吗?

小智 4

是的,当您致电https://login.uber.com/oauth/authorize时

您应该请求“&scope=profile%20history_lite%20history%20request”