{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/active_shipping/issues/260","labels_url":"https://api.github.com/repos/Shopify/active_shipping/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/active_shipping/issues/260/comments","events_url":"https://api.github.com/repos/Shopify/active_shipping/issues/260/events","html_url":"https://github.com/Shopify/active_shipping/pull/260","id":76075932,"number":260,"title":"New USPS tracking API","user":{"login":"trishume","id":887610,"avatar_url":"https://avatars.githubusercontent.com/u/887610?v=3","gravatar_id":"","url":"https://api.github.com/users/trishume","html_url":"https://github.com/trishume","followers_url":"https://api.github.com/users/trishume/followers","following_url":"https://api.github.com/users/trishume/following{/other_user}","gists_url":"https://api.github.com/users/trishume/gists{/gist_id}","starred_url":"https://api.github.com/users/trishume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trishume/subscriptions","organizations_url":"https://api.github.com/users/trishume/orgs","repos_url":"https://api.github.com/users/trishume/repos","events_url":"https://api.github.com/users/trishume/events{/privacy}","received_events_url":"https://api.github.com/users/trishume/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T18:19:44Z","updated_at":"2015-05-13T20:45:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Shopify/active_shipping/pulls/260","html_url":"https://github.com/Shopify/active_shipping/pull/260","diff_url":"https://github.com/Shopify/active_shipping/pull/260.diff","patch_url":"https://github.com/Shopify/active_shipping/pull/260.patch"},"body":"This PR switches USPS package tracking to a new version of their API that offers additional functionality and a cleaner structure. See [here](https://www.usps.com/business/web-tools-apis/track-and-confirm.pdf) for documentation on the old and new APIs.\r\n\r\nSwitching to this API fixes 2 bugs:\r\n- Tracking a number with only one event threw that event's message as an error even if nothing was wrong.\r\n- Tracking a number that was a duplicate was impossible, the new API allows passing through disambiguation information.\r\n\r\nIt also adds support for 2 more pieces of information:\r\n- The estimated time of delivery\r\n- The USPS event codes. These are important because they are [documented](https://about.usps.com/publications/pub97/pub97_i.htm) which means they can be reliably used to determine if a package really has reached its destination and to reliably handle all the failure modes, even if the messages for them haven't yet been observed.\r\n\r\n@Shopify/shipping "},"comment":{"url":"https://api.github.com/repos/Shopify/active_shipping/issues/comments/101810850","html_url":"https://github.com/Shopify/active_shipping/pull/260#issuecomment-101810850","issue_url":"https://api.github.com/repos/Shopify/active_shipping/issues/260","id":101810850,"user":{"login":"kmcphillips","id":84159,"avatar_url":"https://avatars.githubusercontent.com/u/84159?v=3","gravatar_id":"","url":"https://api.github.com/users/kmcphillips","html_url":"https://github.com/kmcphillips","followers_url":"https://api.github.com/users/kmcphillips/followers","following_url":"https://api.github.com/users/kmcphillips/following{/other_user}","gists_url":"https://api.github.com/users/kmcphillips/gists{/gist_id}","starred_url":"https://api.github.com/users/kmcphillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmcphillips/subscriptions","organizations_url":"https://api.github.com/users/kmcphillips/orgs","repos_url":"https://api.github.com/users/kmcphillips/repos","events_url":"https://api.github.com/users/kmcphillips/events{/privacy}","received_events_url":"https://api.github.com/users/kmcphillips/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T20:45:29Z","updated_at":"2015-05-13T20:45:29Z","body":"Can you please bump the gem version according to [semver](http://semver.org/). This is a functional change."}}