Repository URL to install this package:
|
Version:
1.3.3 ▾
|
| docs |
| lib |
| spec |
| .gitignore |
| Gemfile |
| Gemfile.lock |
| Guardfile |
| README.md |
| namara.gemspec |
The Namara Ruby Client provides easy access to the Namara EE rpc services is written in ruby language.
Add the namara gem to a Gemfile. The ref: should be pointing to the latest commit
gem 'namara', git: 'https://github.com/thinkdata-works/namara-ruby.git', branch: 'develop'
To start using namara ruby client, add this line to your code.
require "namara"
Get access to response objects by initializing a Namara client. It takes the domain of the namara api (e.g. ee-dev.namara.io) and the protocol (defaults to https)
namara = Namara.new(domain: "ee-dev.namara.io")
Then, choose an auth strategy. Token auth:
namara.with_token_auth!(token)
Cookie auth (provide the entire cookies array to forward)
namara.with_cookie_auth!(cookies)
APIKey auth :
namara.with_api_key!(api_key)