标签: shippo

在 Shippo 中创建 Shipment 对象会返回处于 Queued 状态的对象

我们通过为我们的项目提供的PHP 库使用Shippo api

创建发货对象时,返回的状态为“队列”,尽管给出了费率 url,但 rates_list 数组为空。

试图了解一些事情:

  • 为什么要排队
  • 我们如何知道它何时未排队
  • 为什么没有 rates_list

php shippo

5
推荐指数
1
解决办法
343
查看次数

使用身份验证API密钥的Swift 4 URLsession

我试图在Swift中发出POST请求Shippo REST API,但是由于它需要API身份验证密钥,因此我无法弄清楚如何URLSession在Swift 4中实现该密钥。正如Apple文档所说,我无法使用urlsession.shared方法。该cURL命令是:

curl https://api.goshippo.com/addresses/ \
 -H "Authorization: ShippoToken shippo_test_Token_Here" \
 -d name="Shawn Ippotle" \ -d company="Shippo" \
 -d street1="215 Clayton St." \
 -d street2="" \
 -d city="San Francisco" \
 -d state="CA" \
 -d zip=94117 \
 -d country="US" \
 -d phone="+1 555 341 9393" \
 -d email="shippotle@goshippo.com"\
 -d is_residential=True\
 -d metadata="Customer ID 123456"
Run Code Online (Sandbox Code Playgroud)

authentication api rest swift shippo

1
推荐指数
2
解决办法
4210
查看次数

标签 统计

shippo ×2

api ×1

authentication ×1

php ×1

rest ×1

swift ×1