简体   繁体   English

从货运公司获取所有包裹的清单

[英]Getting a list of all packages from shipping carriers

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. 我一直在寻找UPS,FedEx,USPS等的API,但似乎找不到任何为特定用户提取所有跟踪信息的方法。 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. 我正在尝试在Rails中实现这一目标。 Any insight would be greatly appreciated. 任何见解将不胜感激。 Thanks. 谢谢。

We were able to integrate with UPS Quantum View and even with FedEx Insight. 我们能够与UPS Quantum View甚至与FedEx Insight集成。 These services will give you a list of all inbound and outbound shipments that are billed to your UPS/FedEx account. 这些服务将为您提供所有计入您的UPS / FedEx帐户的入站和出站货运清单。 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. 要使用其API从UPS Quantum View中提取信息,您需要获取一个所谓的访问密钥 ,并且您需要创建Subscriptions :一个用于入库货件,一个用于出库货件。 This can be done on ups.com if you already have a UPS shipping account. 如果您已经有UPS运送帐户,可以在ups.com上完成。 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 . easytag.net的“ 帮助”部分中 The video title is Obtaining a UPS Access Key . 视频标题为获取UPS访问密钥

When creating API requests to UPS, you'll need to include a key and a subscription name. 在创建对UPS的API请求时,您需要包括密钥和订阅名称。

UPS has a Quantum View API. UPS具有Quantum View API。 Quantum View is their service that allows tracking, etc by account, not just individual tracking number. Quantum View是他们的服务,它允许按帐户进行跟踪等,而不仅仅是单个跟踪号。 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. 我没有帐户,所以看不到他们的详细API文档,所以我只是在猜测。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM