Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  docs
  lib
  spec
  .gitignore
  Gemfile
  Gemfile.lock
  Guardfile
  README.md
  namara.gemspec
Size: Mime:
  README.md

Namara Ruby Client

The Namara Ruby Client provides easy access to the Namara EE rpc services is written in ruby language.

Installation

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'

Setup

To start using namara ruby client, add this line to your code.

require "namara"

Accessing the namara rpc services

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)

Documentation

See the Namara Ruby Client docs for method calls