Ruby gem to integrate with Shipwire's API.
Install locally with
gem install shipwire
Add this line to your application's Gemfile:
Note: The master branch is not guaranteed to be in a fully functioning state. It is unwise to use this branch in a production environment.
Run the bundle command:
If you are using Rails, run the generator:
rails g shipwire:install
Shipwire.configure do |config| config.username = "<%= ENV['SHIPWIRE_USERNAME'] %>" config.password = "<%= ENV['SHIPWIRE_PASSWORD'] %>" end
username - (required) Shipwire username (email address) used for basic auth login to Shipwire
password - (required) Shipwire password used for basic auth login to Shipwire.
open_timeout - Read timeout in seconds. Default is
timeout - Open/read timeout in seconds. Default is
endpoint - Endpoint base URL to use for requests. Default is
logger - Log requests to STDOUT. Default is
Note: There is a difference between an account registered from https://www.shipwire.com/ and one registered from https://beta.shipwire.com/. If you create an account from https://www.shipwire.com/ and then request data from the beta URL, the API will throw errors about an invalid account. Accounts are only valid from that registration point.
Tests are using a throwaway Shipwire Beta account that is only meant for testing. A personal Shipwire Beta account of your own is not required.
Tests require a product named
TEST-PRODUCT2 to function properly.
bundle exec rake spec
bundle exec rspec spec
If making contributions to this gem, make sure you write tests for any new functionality. Contributions will be rejected if there are no tests or tests do not pass.
- Fork it ( https://github.com/billr578/shipwire/fork )
- 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 a new Pull Request