Skip to content

Instantly share code, notes, and snippets.

@ChadMoran
Created May 16, 2012 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChadMoran/2706275 to your computer and use it in GitHub Desktop.
Save ChadMoran/2706275 to your computer and use it in GitHub Desktop.
require 'active_shipping'
include ActiveMerchant::Shipping
ups = UPS.new({ :key => '', :login => '', :password => '' })
while true do
tracking = ups.find_tracking_info '1Z0ER5190335923685'
# params > Shippment > Package > Activity.first
puts tracking.params['Shipment']['Package']['Activity'].first['Status']['StatusType']['Description']
sleep 5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment