Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.555 kb
# A quick way to login to the API and jump into IRB so you can experiment with the client.
# Add this to your bash profile to make it simpler:
# alias client='bundle exec ruby login_to_client_irb.rb'
require './lib/right_api_client/client'
require 'yaml'
require 'irb'
begin
@client = RightApi::Client.new(YAML.load_file(File.dirname(__FILE__) + '/examples/login.yml'))
puts "logged-in to the API, use the '@client' variable to use the client, e.g. '@client.session.index.message' will output:"
puts @client.session.index.message
end
IRB.start
Jump to Line
Something went wrong with that request. Please try again.