Skip to content
/ stosp Public

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

License

Notifications You must be signed in to change notification settings

Keallar/stosp

Repository files navigation

Stosp

Introduction

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

Installation

Add following line to your Gemfile:

# Gemfile
gem 'stosp'

Or install it system-wide:

$ gem install stosp

Usage

First, init client with token:

token = 'YOUR_ACCESS_TOKEN'
client = Stosp::Client.new(access_token: token)

And than talk API with options (if required):

client.purchase_export_meta(purchase)

List of all methods

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

available_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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published