SticapiClient
A Client to use TJPI sticapi services, web services for TJPI application integrations.
Installation
Add this line to your application's Gemfile:
gem 'sticapi_client'And then execute:
$ bundleOr install it yourself as:
$ gem install sticapi_clientUsage
Generate config file
rails generate sticapi_client:installConfigure data for your sticpai server
development:
host: localhost
port: 3001
user: user_of_sticapi
password: password_of_sticapi
test:
host: localhost
port: 3001
user: user_of_sticapi
password: password_of_sticapi
production:
host: localhost
port: 3001
user: user_of_sticapi
password: password_of_sticapiIn your application_controller (or in controllers you want to use sticapi functions) add:
include SticapiControllerto manipulate tokens sent and received from sticapi server
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/zezim/sticapi_client.