all_trips Webhooks:找出 status_changed 适用于哪个用户
all_trips Webhooks: Find out which user the status_changed is for
我已经让 Webhooks 为我们的开发者帐户工作,并且每次有优步请求时它都会发出一条 status_changed 消息,即使该请求不是从我们的应用程序发起的(使用 "all_trips" 许可)
当我们收到响应时,我们如何确定这是给哪个用户的?例如。在下面的响应中,无法确定并使用服务器令牌对 resource_href 进行身份验证会给出 "Invalid OAuth 2.0 credentials provided" 错误。
{
"event_id": "3a3f3da4-14ac-4056-bbf2-d0b9cdcb0777",
"event_time": 1427343990,
"event_type": "all_trips.status_changed",
"meta": {
"resource_id": "2a2f3da4",
"resource_type": "request",
"status": "accepted"
},
"resource_href": "https://api.uber.com/v1/requests/2a2f3da4"
}
感谢收看!我们推出了一个修复程序,将用户 UUID 添加为 "meta" 部分中的附加字段,并在此处更新了我们的文档:https://developer.uber.com/docs/webhooks
如果您还有任何问题,请告诉我们!
我已经让 Webhooks 为我们的开发者帐户工作,并且每次有优步请求时它都会发出一条 status_changed 消息,即使该请求不是从我们的应用程序发起的(使用 "all_trips" 许可)
当我们收到响应时,我们如何确定这是给哪个用户的?例如。在下面的响应中,无法确定并使用服务器令牌对 resource_href 进行身份验证会给出 "Invalid OAuth 2.0 credentials provided" 错误。
{ "event_id": "3a3f3da4-14ac-4056-bbf2-d0b9cdcb0777", "event_time": 1427343990, "event_type": "all_trips.status_changed", "meta": { "resource_id": "2a2f3da4", "resource_type": "request", "status": "accepted" }, "resource_href": "https://api.uber.com/v1/requests/2a2f3da4" }
感谢收看!我们推出了一个修复程序,将用户 UUID 添加为 "meta" 部分中的附加字段,并在此处更新了我们的文档:https://developer.uber.com/docs/webhooks
如果您还有任何问题,请告诉我们!