Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby API for Shipper APIs (UPS, FedEx, DHL)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 omniship.gemspec
README.md

OmniShip

WARNING: This library is Super Duper Alpha. You've been warned.

Everyone likes to ship stuff around the world. And as coders, we like to interact with our favorite shipper via their API.

OmniShip uses Semantic Versioning and TomDoc. Look 'em up.

Currently Supported Calls

  • UPS
    • Track

Usage

Require the library:

require 'rubygems'
require 'omniship'

Set authentication details:

OmniShip::UPS.username = 'johndoe'
OmniShip::UPS.password = 'xk793Ab4G'
OmniShip::UPS.token = 'DFFBF2984239A2C6'

Track a package by tracking number:

trk = OmniShip::UPS.track('1z3050790327433970')

The result:

trk.class
# => OmniShip::UPS::TrackResponse

trk.shipment.class
# => OmniShip::UPS::Track::Shipment

trk.shipment.scheduled_delivery
# => Mon Nov 29 12:00:00 UTC 2010
Something went wrong with that request. Please try again.