Project

putio

0.01
No commit activity in last 3 years
No release in over 3 years
A simple ruby interface to the api at http://api.put.io
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

= 0.1.8
= 0.4.0
= 1.4.6
 Project Readme

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"