Rails
Quick Start
Add this line to your application's Gemfile:
gem 'skylab_studio'
And then execute:
$ bundle install
# Or if you don't use bundler:
$ gem install skylab_studio
Usage
For a Rails app, create skylab_studio.rb
in /config/initializers/
with the following:
SkylabStudio::Client.configure do |config|
config.api_key = 'YOUR API KEY'
config.debug = true
end
In your application code where you want to access Skylab API:
begin
result = SkylabStudio::Client.new.create_job(job: { profile_id: 123 })
puts result
rescue => e
puts "Error - #{e.class.name}: #{e.message}"
end
For a list of all available methods, please consult the official gem documentation.
Help / Support
If you run into any issues, please emails us at [email protected]
For bug reports, please open an issue on GitHub.
Updated about 2 years ago