sticapi_client

A gem who encapsulate api calls of TJPI sticapi


License
MIT
Install
gem install sticapi_client -v 0.4.0

Documentation

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:

$ bundle

Or install it yourself as:

$ gem install sticapi_client

Usage

Generate config file

rails generate sticapi_client:install

Configure 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_sticapi

In your application_controller (or in controllers you want to use sticapi functions) add:

include SticapiController

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