ApiSixClient
ApiSix is a Ruby gem that provides access to various Lytics services.
Installation
Add this line to your application's Gemfile:
gem 'api_six_client', git: '[email protected]:lytics-as/api-six-client.git'
And then execute:
$ bundle install
Usage
brg_client = ApiSixClient::Brg.new(endpoint: 'https://...', auth_token: 'secret')
brg_client.get('/business_units')
or if you use Rails
# config/initializers/api_six_client.rb
ApiSixClient.configure do |config|
config.endpoint = 'https://...'
config.auth_token = 'secret'
end
brg_client = ApiSixClient::Brg.new
brg_client.get('/business_units')