Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

neutroncreations/shipwire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shipwire Gem

A Ruby interface to the Shipwire API.

Installation

gem install shipwire

Documentation

View detailed documentation on rdoc.info

Configuration

Setup your username and password before use

Shipwire.config do |config|
  config.username    = "email@example.com"
  config.password    = "000000000"
end

Rate Request

# create an order
order = Shipwire::Order.new
# add an address
order.address = {address1: '', city: '', country: 'GB'}
# add an item
o.add_item Shipwire::OrderItem.new('SKU0001', 1)