/v1/requests/{request_id} 错误地请求请求范围

/v1/requests/{request_id} incorrectly asks for requests scope

我的范围设置为:all_trips 配置文件

对于授权 all_trips 和配置文件范围的开发人员,Webhook 已成功收到乘车请求(非沙盒测试)。

尝试获取行程的详细信息时 - api returns { "message": "Missing scope: request", "code": "unauthorized" }

根据文档 - 我假设具有 all_trips 的开发人员在旅行中不需要请求范围为 "retrieve" 状态 - 我看到如何需要 "request"虽然旅行....

这是一个错误吗?

"GET /v1/requests/{request_id}" 的文档符合您的经验。您需要具有 request 范围:https://developer.uber.com/docs/rides/api/v1-requests-details

"Authorization: OAuth 2.0 bearer token with the request scope."

但是,您可以使用 all_trips 范围内可用的 requests/current 端点 (https://developer.uber.com/docs/rides/api/v1-requests-current):

"Authorization: OAuth 2.0 bearer token with the all_trips or request scope."

这是出于对历史数据隐私的担忧而实施的。然而,重新审视这一点减轻了这些担忧。我们将很快放宽此限制(可能在接下来的几周内),并将 'details' 的范围限制放宽为与 'current.' 相同。同时,请使用当前端点。干杯!