我能够使用Ruby客户端成功地创建装运,但是当我运行
Shippo::Shipment.retrieve("valid_shipment_object_id")
我得到了:
undefined methodretrieve‘for Shippo::Shippo:Class`
当我跑步的时候
Shippo.Shipment.rates("valid_shipment_object_id")
我得到了:
Shippo:undefined的模块方法‘`Shipment’
通过使用cURL库,我可以使用相同的对象ID成功地运行上述两个命令。有什么想法吗?
谢谢
发布于 2017-04-25 00:48:57
使用Ruby gem检索装运的方法是.get("valid_shipment_object_id"),这是turns out。
Shippo的文档正在相应地更新,但是在使用.get()方法之后,您可以在Shippo对象上使用.rates来访问费率。
https://stackoverflow.com/questions/43579079
复制相似问题