Skip to content

ctcherry/transmissionrb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

transmissionrb

A simple Ruby class to work with Transmission's HTTP RPC interface. Tested on OSX. Pretty expiremental, not alot of error handling, but enough to demonstrate how to work with the API.

Examples

Initialize default, no auth

t = Transmission.new

...and with auth

t = Transmission.new(:user => 'username', :pass => 'password')

Get all tracked torrents (anything that is in the Transmission interface will be returned here)

t.all

Returns:

[{"name"=>"Torrent Name 1", "rateDownload"=>0, "id"=>98, "peersSendingToUs"=>0, "peersConnected"=>0, "status"=>0, "percentDone"=>1},
{"name"=>"Torrent Name 2", "rateDownload"=>0, "id"=>99, "peersSendingToUs"=>0, "peersConnected"=>0, "status"=>0, "percentDone"=>1}]

About

Ruby client for Transmission RPC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages