Stosp

Introduction

Client library for 100sp API. Supports all proposed endpoints.

Installation

Add following line to your Gemfile:

Gemfile

gem ‘stosp’

“r install it system-wide:

“ gem install stosp

Usage

First, init client with token:

“oken = ‘YOUR_ACCESS_TOKEN’ client = Stosp::Client.new(access_token: token)

“nd than talk API with options (if required):

“lient.purchase_export_meta(purchase)

List of all methods

Check the official API docs for more information and available options of methods

“vailable_distributors -> GET calculate(options) -> POST check_orders(mega_order_id, orders = []) -> POST create(options) -> POST export_full_report -> GET export_purchases_list -> GET import(options) -> POST process_orders(pid, options = {}) -> GET purchase_export(options = {}) -> GET purchase_export_meta(purchase) -> GET sticker_print(mega_order_ids, options = {}) -> GET

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Keallar/stosp.

License

The gem is available as open source under the terms of the MIT License.