A Ruby interface to the Luminati API.
Caution: This gem currently supports only selected endpoints of the existing API. Those are missing:
- Some endpoints of the Account management API.
- Proxy Manager API
Check out the documentation for which ones are supported.
Add this line to your application's Gemfile:
gem 'luminati-ruby'And then execute:
$ bundle install
Or install it yourself as:
$ gem install luminati-ruby
Get Luminati::Client by calling Luminati::Client.new with an API token. You can get your API token via https://luminati.io/cp/setting.
client = Luminati::Client.new("your api token")
and call any methods you want to use:
client.active_zones
=> [{"name"=>"testzone01", "type"=>"dc"}]
Also refer to the documentation https://rubydoc.info/gems/luminati-ruby
After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/doublemarket/luminati-ruby.
The gem is available as open source under the terms of the MIT License.