TMAPI
Wrapper for TaxiMaster API (Taxi Master) written in Ruby.
TaxiMaster API documentation: (Russian)
Installation
Add this line to your application's Gemfile:
gem 'tmapi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tmapi
Usage
First you should initialize a new class with API URL and unique key of customer. After this you can call API methods.
Example:
api = TMAPI::Telephony.new('url', 'key')
api.change_order_state(order_id, new_state)
=> { order_id: 1, new_state: 5 }
Options:
ssl
- SSL verification (true
by default)debug
- output response to logger (false
by default)
api = TMAPI::Telephony.new('url', 'key', ssl: false, debug: true)
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/rgarifullin/tmapi.
License
The gem is available as open source under the terms of the MIT License.