DHL Express 📦
A gem to track international DHL Express packages without the DHL SOAP/XML API.
Requirements
- Ruby 1.9
Installation
Add this to your gemfile
gem 'dhl_express'
and
bundle
Tracking 📍
Track a package with it's waybill tracking number.
package = DhlExpress::Tracking.new("123456789")
Access tracking information.
package = DhlExpress::Tracking.new("123456789")
package.origin # e.g. "TOKYO - TOKYO - JAPAN"
package.destination # e.g. "GREENSBORO, NC - GREENSBORO - USA"
package.status # e.g. String of current history status point
package.history # Array of package movement history in chronological order
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request