如何在Uber API的Riders帐户中使用“ POST /请求”

时间:2019-07-05 15:46:58

标签: uber-api

我有Uber骑士帐户并创建了App,我正在使用以下网址请求骑行:https://sandbox-api.uber.com/v1.2/requests 具有授权令牌

curl -X POST \
  https://sandbox-api.uber.com/v1.2/requests \
  -H 'authorization: Bearer <TOKEN>' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -d '{"fare_id": "abcd","product_id": "29699b0d-bbb6-4e2c-9951-c31f5a96377a","start_latitude": 23.03498285,"start_longitude": 72.56721890910065,"end_latitude": 23.03498286,"end_longitude": 72.56721890910068}'

输出:

{
    "code": "unauthorized",
    "message": "This endpoint requires at least one of the following scopes: request, request.delegate, request.delegate.tos_accept"
}

0 个答案:

没有答案