putio-ruby
putio-ruby is a simple gem for communicating with the Put.io REST API. Currently supports just a handful of endpoints for Files and Transfers.
Installation
Add the gem to your Gemfile:
gem 'putio-ruby'
And then
$ bundle install
Or install it yourself as:
$ gem install putio-ruby
Usage
First configure the gem to use your oauth token (See instructions for generating a token)
Putio.configure do |config|
oauth_token = "YOUR_OAUTH_TOKEN"
end
Then use it to query Put.io
Putio::File.list
file = Putio::File.get(1234)
file.download_url
file.delete
Putio::Transfer.list
Putio::Transfer.get(1234)
Putio::Transfer.add("http://some_url.com")