从承运商处获取所有包裹的列表
我一直在研究 UPS、FedEx、USPS 等的 API,但似乎找不到任何方法来提取给定用户的所有跟踪信息。我只看到通过跟踪号码提取信息的方法。有谁能够找到获取这些数据的方法吗?在我看来,这些大型运营商不会以简单的方式提供此信息,这似乎很愚蠢。
我正在尝试在 Rails 中实现这一点。
I've been looking at the APIs for UPS, FedEx, USPS, etc, and I can't seem to find any method of pulling all tracking info for a given user. I only see methods that pull info via a tracking number. Has anyone been able to find a way to get at this data? Seems silly to me that these huge carriers wouldn't supply this info in an easy method.
I'm trying to accomplish this in Rails.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们能够与 UPS Quantum View 甚至 FedEx Insight 集成。这些服务将为您提供记入您的 UPS/FedEx 帐户的所有入库和出库货件的列表。您可以获得每件货件的信息:追踪号码、重量、发件人和收件人信息(公司名称、城市、州、国家)。
要使用 UPS Quantum View 的 API 提取信息,您需要获取所谓的访问密钥,并且需要创建订阅:一个用于入库货件,一份用于出境。如果您已有 UPS 运输帐户,则可以在 ups.com 上完成此操作。您无需等待,立即提供。我们有一个视频介绍如何获取密钥和设置订阅。它位于 easytag.net 的 帮助部分。视频标题为获取 UPS 访问密钥。
创建对 UPS 的 API 请求时,您需要包含密钥和订阅名称。
We were able to integrate with UPS Quantum View and even with FedEx Insight. These services will give you a list of all inbound and outbound shipments that are billed to your UPS/FedEx account. You can get info on every piece of each shipment: tracking numbers, weight, shipper and recipient info (Company name, city, state, country).
To pull information from UPS Quantum View using their API you will need to obtain a so-called Access Key, and you'll need to create Subscriptions: one for inbound shipments, one for outbound ones. This can be done on ups.com if you already have a UPS shipping account. You don't have to wait, it's provided instantly. We have a video of how to get the key and set up the subscriptions. It's on easytag.net in the Help section. The video title is Obtaining a UPS Access Key.
When creating API requests to UPS, you'll need to include a key and a subscription name.
UPS 有一个 Quantum View API。 Quantum View 是他们的服务,允许通过帐户进行跟踪等,而不仅仅是个人跟踪号码。我想这会给你你所需要的。我没有帐户,所以看不到他们详细的 API 文档,所以我只是猜测。
UPS has a Quantum View API. Quantum View is their service that allows tracking, etc by account, not just individual tracking number. I assume that will get you what you need. I don't have an account so I can't see their detailed API documentation, so I'm just guessing.