Uber Request Details API not returning data

青春壹個敷衍的年華 提交于 2019-12-10 11:35:00

问题


I'm seeing an issue with Uber /v1/requests/{request_id} API. Per Uber API doc, I'm authorizing with OAuth 2.0 bearer token with request scope, passing in valid request_id, etc. (My OAuth 2.0 login is working correctly, so I know my access token is valid.)

The response I get is always:

SUCCESS: {
    code = forbidden;
    message = Forbidden;
}

A sample request I'm making is:https://api.uber.com/v1/requests/118f2b74-1bea-4e75-b7de-3b034e5zd811

Using Uber API Sandbox, however, I get a valid response. For example:

URL: https://sandbox-api.uber.com/v1/requests/888d3da2-1433-4a6b-d1d1-e1f1061fe256

Response:

SUCCESS: {
    driver = "<null>";
    eta = "<null>";
    location = "<null>";
    "request_id" = "888d3da2-1433-4a6b-d1d1-e1f1061fe256";
    status = processing;
    "surge_multiplier" = 1;
    vehicle = "<null>";
}

Anyone able to call Uber's Request Details API (both production & sandbox) successfully? Any help would be appreciated.

来源:https://stackoverflow.com/questions/35568547/uber-request-details-api-not-returning-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!