【问题标题】:uber RUSH API sandbox deliveries is_fragile value incorrect, bug?uber RUSH API 沙箱交付 is_fragile 值不正确,错误?
【发布时间】:2016-12-06 06:09:59
【问题描述】:

在尝试使用 uber 交付 API 沙箱时,我注意到当我 POST 到 https://sandbox-api.uber.com/v1/deliveries 以使用 item[] 创建新项目的交付时。"is脆弱": true,来自沙箱的响应错误地显示了 item[ ].“很脆弱”:错误。至少我认为这是不正确的,我没有看到它被列为沙盒的已知限制。这是一个错误吗?

更多信息:

  • 操作系统:Ubuntu 16.04.1 LTS
  • 客户端:Postman 4.9.0

POST 请求到 URL https://sandbox-api.uber.com/v1/deliveries

POST /v1/deliveries HTTP/1.1
Host: sandbox-api.uber.com
Authorization: [redacted]
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: [redacted]

{
    "items": [
        {
            "title": "Fragile Item",
            "quantity": 1,
            "price": 30,
            "is_fragile": true,
            "currency_code": "USD",
        }
    ],


    "dropoff": {
        "location": {
            "address": "530 W 113th Street",
            "address_2": "Floor 2",
            "city": "New York",
            "country": "US",
            "postal_code": "10025",
            "state": "NY"
        },
        "contact": {
            "first_name": "Alice",
            "last_name": "Dropoff",
            "email": "tomb@cryptocracy.net",
            "phone": {
                "number": "+19177447934",
                "sms_enabled": "true",
            },
        }
    },
    "pickup": {
        "location": {
            "address": "636 W 28th Street",
            "address_2": "Floor 2",
            "city": "New York",
            "country": "US",
            "postal_code": "10001",
            "state": "NY"
        },
        "contact": {
            "first_name": "Bob",
            "last_name": "Pickup",
            "email": "tomb@cryptocracy.net",
            "phone": {
                "number": "+19177447934",
                "sms_enabled": "true",
            },
        },
    },
}

来自沙盒的响应:

{
  "status": "processing",
  "dropoff": {
    "eta": 12,
    "signature_required": false,
    "contact": {
      "first_name": "Alice",
      "last_name": "Dropoff",
      "send_sms_notifications": true,
      "send_email_notifications": true,
      "phone": {
        "sms_enabled": true,
        "number": "+19177447934"
      },
      "email": "tomb@cryptocracy.net"
    },
    "special_instructions": "",
    "location": {
      "city": "New York",
      "country": "US",
      "longitude": -73.963863,
      "state": "NY",
      "postal_code": "10025",
      "address_2": "Floor 2",
      "address": "530 W 113th Street",
      "latitude": 40.805264
    },
    "signature_image": {
      "url": "",
      "expires_at": "-62135596800"
    },
    "courier_notes": {}
  },
  "fee": 5,
  "quote_id": "c7e135da-957e-40b7-a2c5-5d468dc1d686",
  "courier": null,
  "items": [
    {
      "weight": 0,
      "title": "Bottle 3",
      "price": 30,
      "is_fragile": false,
      "height": 0,
      "width": 0,
      "length": 0,
      "currency_code": "USD",
      "quantity": 1
    }
  ],
  "created_at": 1480961485,
  "delivery_id": "21b1b8de-2cea-4bc4-a316-2fd7598787c7",
  "pickup": {
    "eta": 7,
    "signature_required": false,
    "contact": {
      "first_name": "Bob",
      "last_name": "Pickup",
      "send_sms_notifications": true,
      "send_email_notifications": true,
      "phone": {
        "sms_enabled": true,
        "number": "+19177447934"
      },
      "email": "tomb@cryptocracy.net"
    },
    "special_instructions": "",
    "location": {
      "city": "New York",
      "country": "US",
      "longitude": -74.0064109,
      "state": "NY",
      "postal_code": "10001",
      "address_2": "Floor 2",
      "address": "636 W 28th Street",
      "latitude": 40.7527293
    },
    "signature_image": {
      "url": "",
      "expires_at": "-62135596800"
    },
    "courier_notes": {}
  },
  "order_reference_id": "",
  "tracking_url": "https://api.uber.com/v1/sandbox/map",
  "currency_code": "USD"
}

【问题讨论】:

    标签: uber-api


    【解决方案1】:

    这似乎是交付 API 的 Uber 沙盒环境中的一个错误。

    【讨论】:

    • 有没有办法让我提交一个错误报告?
    • 是的。从这个线程我在内部创建了一个错误。一旦解决,我将发布更新。此错误仅影响我们的沙盒环境。
    • 是的,我知道它只会影响沙箱。感谢您提交报告!
    猜你喜欢
    • 2017-01-02
    • 2016-10-12
    • 2017-12-14
    • 2016-05-17
    • 2015-01-18
    • 2016-09-23
    • 1970-01-01
    • 1970-01-01
    • 2017-08-23
    相关资源
    最近更新 更多