Tracking with EasyPost

Generating a public url to send your customers is simple:

require 'easypost'
EasyPost.api_key = ""

tracker = EasyPost::Tracker.create({
  tracking_code: "9400110898825022579493",
  carrier: "USPS"
})
      
{
  ...
  "id": "trk_a1b2c3d4",
  "tracking_code": "9400110898825022579493",
  "status": "in_transit",
  "created_at": "2016-01-13T21:52:28Z",
  "updated_at": "2016-01-13T21:52:32Z",
  "est_delivery_date": null,
  "carrier": "USPS",
  "tracking_details": [...],
  "public_url": "https://track.easypost.com/..."
}