Reputation: 65
I've got the Webhooks working for our developer accounts, and it emits a status_changed message every time there is an Uber request, even if the request was not initiated from our app (using the "all_trips" permission)
When we get the response back, how do we determine which user this is for? E.g. in the response below, there is no way to determine that and using the server token to authenticate to the resource_href gives an "Invalid OAuth 2.0 credentials provided" error.
{ "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" }
Upvotes: 1
Views: 104
Reputation: 346
Thanks for catching this! We rolled out a fix that adds the users UUID as an additional field in the "meta" section, as well as updated our documentation here: https://developer.uber.com/docs/webhooks
Let us know if you have any more trouble!
Upvotes: 2