Giter VIP home page Giter VIP logo

shipstation's Introduction

Shipstation

Gem Version

A Ruby wrapper for the Shipstation API.

Release Notes

Installation

Add module to your Gemfile:

gem 'shipstation'

Then run bundle to install the Gem:

bundle install

Set up an initializer file with your Shipstation API keys:

Shipstation.username  = 'shipstation_api_key'
Shipstation.password  = 'shipstation_api_secret'

e.g. config/initializers/shipstation.rb

Usage

This gem provides a collection of operations for use within the Shipstation API.

List

List all records for a resource.

Shipstation::Carrier.list
Shipstation::Customer.list
Shipstation::Order.list
Shipstation::Product.list
Shipstation::Shipment.list
Shipstation::Store.list
Shipstation::Warehouse.list
Shipstation::Tag.list

Retrieve

Retrieve a single record of a resource.

Shipstation::Customer.retrieve(customer_id)
Shipstation::Order.retrieve(order_id)
Shipstation::Product.retrieve(product_id)
Shipstation::Store.retrieve(store_id)
Shipstation::Warehouse.retrieve(warehouse_id)

Create

Create a single record of a resource.

Shipstation::Order.create(order_params)
Shipstation::Warehouse.create(warehouse_params)

Create Bulk

Create a bulk records of a resource.

Shipstation::Order.createbulk(order_params)

Update

Update a single record of a resource.

Shipstation::Product.update(product_params)
Shipstation::Store.update(store_params)
Shipstation::Warehouse.update(warehouse_params)

Apart from the standard CRUD operations, there are also some custom operations for specific use cases.

Create a new Order Label.

Shipstation::Order.create_label(order_label_params)

Void an Order Label.

Shipstation::Order.void_label(order_label_params)

Assign Tag to an Order.

Shipstation::Order.assign_tag(assign_tag_params)

Remove Tag from an Order.

Shipstation::Order.remove_tag(remove_tag_params)

Delete an Order

Shipstation::Order.delete(order_id)

Get Shipment Rates

Shipstation::Shipment.get_rates(get_rates_params)

Create Shipment Label

Shipstation::Shipment.create_label(create_label_params)

List Carrier Services

Shipstation::Carrier.list_services(list_services_params)

Susbcribe to Webhook

Shipstation::Webhook.subscribe(webhook_params)

Unsusbcribe to Webhook

Shipstation::Webhook.unsubscribe(webhook_id)

Versioning

Shipstation Ruby wrapper follows Semantic Versioning 2.0 as defined at http://semver.org.

How to contribute

  • Fork the project
  • Create your feature or bug fix
  • Add the requried tests for it.
  • Commit (do not change version or history)
  • Send a pull request against the development branch

Copyright

Copyright (c) 2020 Tom Dallimore (@tom_dallimore)
Licenced under the MIT licence.

shipstation's People

Contributors

jellyfishboy avatar noorani786 avatar alepore avatar axlekb avatar samlachance avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.