Project

stosp

0.0
No release in over a year
Client for 100sp API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

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.