Project

shiphawk

0.01
No commit activity in last 3 years
No release in over 3 years
ShipHawk, technology that delivers. See https://shiphawk.com for details.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9.4
>= 0
~> 10.0
>= 0
>= 0

Runtime

 Project Readme

Shiphawk::Client

Ruby wrapper for the ShipHawk V3 API. The ShipHawk::Client gem provides an easy-to-use wrapper for ShipHawk's REST APIs.

Installation

Add this line to your application's Gemfile:

gem 'shiphawk'

And then execute:

$ bundle

Or install it yourself as:

$ gem install shiphawk

Usage

View the Examples

End points

Errors and Exceptions

When an error status is received from the server, the gem will raise an error on the client side:

  • 400 raises Shiphawk::Errors::GeneralError
  • 401 raises Shiphawk::Errors::UnauthorizedError
  • 403 raises Shiphawk::Errors::AccessDeniedError
  • 404 raises Shiphawk::Errors::NotFoundError
  • 422 raises Shiphawk::Errors::UnprocessableEntityError
  • 500 raises Shiphawk::Errors::InformShiphawkError
  • 502 raises Shiphawk::Errors::UnavailableError
  • 503 raises Shiphawk::Errors::UnavailableError

Copyright

Copyright (c) 2015 Hawk Applications Corp. See LICENSE for details.