是否可以从 Uber API 中找到完成行程的车辆类型?
Is it possible to discover the kind of vehicle a ride was completed with from the Uber API?
如标题:我希望能够访问 signed-in 用户的特定行程,并知道相关车辆是普锐斯、福特 Galaxy、E-Class 还是任何。我在 Riders 或 Rides 的文档中没有看到这个 API - 有什么方法可以获取信息吗?
是的。您可以通过查看当前行程从 Uber API 获取品牌、型号甚至车牌(您只需过滤 completed
的状态):
https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-get
响应包括车辆的详细信息:
"vehicle": {
"make": "Bugatti",
"model": "Veyron",
"license_plate": "I<3Uber",
"picture_url": "https:\/\/d1w2poirtb3as9.cloudfront.net\/car.jpeg"
}
请注意,检索应用 非您自己(即任何骑手)请求的乘车数据需要您的应用 FULL ACCESS
范围:
Privileged Scope This endpoint requires a privileged scope to be used
in production by all Uber riders. You can use this endpoint
immediately when authenticated as yourself or any of your 5 registered
developers. When you are ready to distribute your application broadly
for use by all Uber riders, you may request FULL ACCESS. For more
information read about scopes.
如标题:我希望能够访问 signed-in 用户的特定行程,并知道相关车辆是普锐斯、福特 Galaxy、E-Class 还是任何。我在 Riders 或 Rides 的文档中没有看到这个 API - 有什么方法可以获取信息吗?
是的。您可以通过查看当前行程从 Uber API 获取品牌、型号甚至车牌(您只需过滤 completed
的状态):
https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-get
响应包括车辆的详细信息:
"vehicle": {
"make": "Bugatti",
"model": "Veyron",
"license_plate": "I<3Uber",
"picture_url": "https:\/\/d1w2poirtb3as9.cloudfront.net\/car.jpeg"
}
请注意,检索应用 非您自己(即任何骑手)请求的乘车数据需要您的应用 FULL ACCESS
范围:
Privileged Scope This endpoint requires a privileged scope to be used in production by all Uber riders. You can use this endpoint immediately when authenticated as yourself or any of your 5 registered developers. When you are ready to distribute your application broadly for use by all Uber riders, you may request FULL ACCESS. For more information read about scopes.