Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A ruby interface to the Put.io API.
Ruby C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
development/ruby/1.8
lib
test
.gitignore
Gemfile
Rakefile
Readme.md
putio.gemspec

Readme.md

A ruby interface to the Put.io API.

About

The Put.io api is quite complex. This gem allows you to call methods in the form of:

<request type (get or post)_<class (users, files etc)>_<method(list, info etc)>

e.g.

get_user_info

This will return a hash of mashies that can be queried like a regular object.

Install

gem install putio --pre

Usage

# require the gem
require 'putio'

# create an instance of a client
p = Putio.new('abc', '123')
=> #<Putio::Client:0x1006f2c40 @api_secret="123", @api_key="abc">

# make a request
info = p.get_user_info
=> [<#Hashie::Mash dir_id="7731413" id="8664" name="Adam Rogers">]

# query the hash
info.first.name
=> "Adam Rogers"
Something went wrong with that request. Please try again.