Sha256: 003e8d5425359a0b13cd21f8db3981403f6ac75f33ed159ae57c18041d632127
Contents?: true
Size: 580 Bytes
Versions: 9
Compression:
Stored size: 580 Bytes
Contents
# 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 File.expand_path('../lib/right_api_client', __FILE__) require 'yaml' require 'irb' begin @client = RightApi::Client.new(YAML.load_file(File.expand_path('../config/login.yml', __FILE__))) 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
Version data entries
9 entries across 9 versions & 1 rubygems