2008-05-10 14:29:59 +00:00
|
|
|
1. Introduction
|
|
|
|
|
|
|
|
This document describes a protocol for interacting with Transmission
|
|
|
|
sessions remotely.
|
|
|
|
|
2008-05-10 16:11:00 +00:00
|
|
|
1.1 Terminology
|
|
|
|
|
2008-10-16 17:56:17 +00:00
|
|
|
The JSON terminology in RFC 4627 is used.
|
|
|
|
|
|
|
|
In benc terms, a JSON "array" is equivalent to a benc list,
|
|
|
|
a JSON "object" is equivalent to a benc dictionary,
|
|
|
|
and a JSON object's "keys" are the dictionary's string keys.
|
2008-05-10 14:29:59 +00:00
|
|
|
|
|
|
|
2. Message Format
|
|
|
|
|
2008-06-17 04:47:20 +00:00
|
|
|
Messages are formatted in a subset of JSON easily represented
|
2008-10-16 17:56:17 +00:00
|
|
|
as bencoded data. Arrays, objects, strings, and whole numbers
|
|
|
|
all have one-to-one mappings between JSON and benc.
|
|
|
|
|
|
|
|
Booleans and floating-point numbers are also used in the JSON messages.
|
|
|
|
Those two types aren't native to benc, so they're encoded this way:
|
|
|
|
Booleans are encoded as numbers where 0 is false and 1 is true.
|
2008-06-17 16:25:13 +00:00
|
|
|
Floating-point numbers are represented as strings.
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-06-17 04:47:20 +00:00
|
|
|
Messages are formatted as objects. There are two types:
|
2008-05-12 23:51:17 +00:00
|
|
|
requests (described in 2.1) and responses (described in 2.2).
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-08-20 01:55:28 +00:00
|
|
|
All text MUST be UTF-8 encoded.
|
|
|
|
|
2008-05-12 23:51:17 +00:00
|
|
|
2.1. Requests
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-06-18 22:01:15 +00:00
|
|
|
Requests support three keys:
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-05-12 23:51:17 +00:00
|
|
|
(1) A required "method" string telling the name of the method to invoke
|
2008-05-22 16:59:51 +00:00
|
|
|
(2) An optional "arguments" object of key/value pairs
|
2008-06-17 16:25:13 +00:00
|
|
|
(3) An optional "tag" number used by clients to track responses.
|
2008-05-12 23:51:17 +00:00
|
|
|
If provided by a request, the response MUST include the same tag.
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-05-12 23:51:17 +00:00
|
|
|
2.2. Responses
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-05-12 23:51:17 +00:00
|
|
|
Reponses support three keys:
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-08-13 16:57:12 +00:00
|
|
|
(1) A required "result" string whose value MUST be "success" on success,
|
2008-05-12 23:51:17 +00:00
|
|
|
or an error string on failure.
|
2008-05-22 16:59:51 +00:00
|
|
|
(2) An optional "arguments" object of key/value pairs
|
2008-06-17 16:25:13 +00:00
|
|
|
(3) An optional "tag" number as described in 2.1.
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-05-22 19:24:11 +00:00
|
|
|
2.3. Transport Mechanism
|
2008-05-15 05:11:50 +00:00
|
|
|
|
2008-06-17 16:25:13 +00:00
|
|
|
HTTP POSTing a JSON-encoded request is the preferred way of communicating
|
|
|
|
with a Transmission RPC server; however, a simple notation also exists
|
2008-05-22 19:24:11 +00:00
|
|
|
for sending requests in the query portion of a URL.
|
2008-05-15 05:11:50 +00:00
|
|
|
|
2008-05-22 19:24:11 +00:00
|
|
|
The URL notation works as follows:
|
2008-06-17 04:47:20 +00:00
|
|
|
(1) Any key not "tag" or "method" is treated as an argument.
|
2008-05-15 05:11:50 +00:00
|
|
|
(2) The "arguments" key isn't needed, since data isn't nested.
|
2008-06-17 04:47:20 +00:00
|
|
|
(3) If the value in a key/value pair can be parsed as a number, then it is.
|
|
|
|
Otherwise if it can be parsed as an array of numbers, then it is.
|
|
|
|
Otherwise, it's parsed as a string.
|
2008-05-15 05:11:50 +00:00
|
|
|
|
|
|
|
Examples:
|
|
|
|
?method=torrent-start&ids=1,2
|
|
|
|
?method=session-set&speed-limit-down=50&speed-limit-down-enabled=1
|
|
|
|
|
2008-05-10 14:29:59 +00:00
|
|
|
3. Torrent Requests
|
|
|
|
|
2008-05-12 00:41:55 +00:00
|
|
|
3.1. Torrent Action Requests
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-05-20 23:58:59 +00:00
|
|
|
Method name | libtransmission function
|
|
|
|
--------------------+-------------------------------------------------
|
|
|
|
"torrent-start" | tr_torrentStart
|
|
|
|
"torrent-stop" | tr_torrentStop
|
|
|
|
"torrent-verify" | tr_torrentVerify
|
2008-05-12 23:51:17 +00:00
|
|
|
|
2008-06-17 16:25:13 +00:00
|
|
|
Request arguments: "ids", a list of torrent id numbers, sha1 hash strings,
|
2008-05-12 00:41:55 +00:00
|
|
|
or both. These are the torrents that the request will
|
|
|
|
be applied to. If "ids" is ommitted, the request is
|
|
|
|
applied to all torrents.
|
2008-05-12 23:51:17 +00:00
|
|
|
|
2008-05-13 17:31:09 +00:00
|
|
|
Response arguments: none
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-08-13 17:02:51 +00:00
|
|
|
3.2. Torrent Mutators
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-06-17 16:25:13 +00:00
|
|
|
Method name: "torrent-set"
|
|
|
|
|
|
|
|
Request arguments:
|
2008-05-12 23:51:17 +00:00
|
|
|
|
2008-06-17 16:25:13 +00:00
|
|
|
string | value type & description
|
|
|
|
---------------------------+-------------------------------------------------
|
2008-06-18 22:01:15 +00:00
|
|
|
"files-wanted" | array indices of file(s) to download
|
|
|
|
"files-unwanted" | array indices of file(s) to not download
|
|
|
|
"ids" | array torrent list, as described in 3.1
|
2008-06-17 16:25:13 +00:00
|
|
|
"peer-limit" | number maximum number of peers
|
2008-06-18 22:01:15 +00:00
|
|
|
"priority-high" | array indices of high-priority file(s)
|
|
|
|
"priority-low" | array indices of low-priority file(s)
|
|
|
|
"priority-normal" | array indices of normal-priority file(s)
|
2008-06-22 13:44:50 +00:00
|
|
|
"speed-limit-down" | number maximum download speed (in K/s)
|
2008-06-17 16:25:13 +00:00
|
|
|
"speed-limit-down-enabled" | 'boolean' true if the download speed is limited
|
2008-06-22 13:44:50 +00:00
|
|
|
"speed-limit-up" | number maximum upload speed (in K/s)
|
2008-06-17 16:25:13 +00:00
|
|
|
"speed-limit-up-enabled" | 'boolean' true if the upload speed is limited
|
|
|
|
|
2008-08-26 15:27:00 +00:00
|
|
|
Just as an empty "ids" value is shorthand for "all ids", using an empty array
|
|
|
|
for "files-wanted", "files-unwanted", "priority-high", "priority-low", or
|
|
|
|
"priority-normal" is shorthand for saying "all files".
|
|
|
|
|
2008-06-17 16:25:13 +00:00
|
|
|
Response arguments: none
|
2008-06-16 22:11:50 +00:00
|
|
|
|
2008-06-17 16:25:13 +00:00
|
|
|
3.3. Torrent Accessors
|
2008-06-16 22:11:50 +00:00
|
|
|
|
2008-06-17 16:25:13 +00:00
|
|
|
Method name: "torrent-get".
|
2008-06-16 22:11:50 +00:00
|
|
|
|
2008-06-17 16:25:13 +00:00
|
|
|
Request arguments:
|
2008-06-16 03:47:50 +00:00
|
|
|
|
2008-07-26 14:47:07 +00:00
|
|
|
(1) An opional "ids" array as described in 3.1.
|
|
|
|
(2) A required "fields" array of keys. (see list below)
|
2008-06-17 16:25:13 +00:00
|
|
|
|
2008-06-17 16:35:33 +00:00
|
|
|
Response arguments:
|
2008-06-17 16:25:13 +00:00
|
|
|
|
2008-07-26 14:47:07 +00:00
|
|
|
(1) A "torrents" array of objects, each of which contains
|
|
|
|
the key/value pairs matching the request's "fields" argument.
|
|
|
|
|
|
|
|
key | type | source
|
|
|
|
-----------------------+--------------------------------------+---------
|
|
|
|
activityDate | number | tr_stat
|
|
|
|
addedDate | number | tr_stat
|
|
|
|
announceResponse | string | tr_stat
|
|
|
|
announceURL | string | tr_stat
|
|
|
|
comment | string | tr_info
|
|
|
|
corruptEver | number | tr_stat
|
|
|
|
creator | string | tr_info
|
|
|
|
dateCreated | number | tr_info
|
|
|
|
desiredAvailable | number | tr_stat
|
|
|
|
doneDate | number | tr_stat
|
2009-01-17 14:58:50 +00:00
|
|
|
downloadDir | string | tr_torrent
|
2008-07-26 14:47:07 +00:00
|
|
|
downloadedEver | number | tr_stat
|
2008-12-04 00:27:04 +00:00
|
|
|
downloaders | number | tr_stat
|
2008-07-26 14:47:07 +00:00
|
|
|
downloadLimitMode | number | tr_torrent
|
|
|
|
downloadLimit | number | tr_torrent
|
|
|
|
error | number | tr_stat
|
|
|
|
errorString | number | tr_stat
|
|
|
|
eta | number | tr_stat
|
|
|
|
files | array (see below) | n/a
|
|
|
|
hashString | string | tr_info
|
|
|
|
haveUnchecked | number | tr_stat
|
|
|
|
haveValid | number | tr_stat
|
|
|
|
id | number | tr_torrent
|
|
|
|
isPrivate | 'boolean | tr_torrent
|
|
|
|
lastAnnounceTime | number | tr_stat
|
|
|
|
lastScrapeTime | number | tr_stat
|
|
|
|
leechers | number | tr_stat
|
|
|
|
leftUntilDone | number | tr_stat
|
|
|
|
manualAnnounceTime | number | tr_stat
|
|
|
|
maxConnectedPeers | number | tr_torrent
|
|
|
|
name | string | tr_info
|
|
|
|
nextAnnounceTime | number | tr_stat
|
|
|
|
nextScrapeTime | number | tr_stat
|
2008-08-22 17:59:31 +00:00
|
|
|
peers | array (see below) | n/a
|
2008-07-26 14:47:07 +00:00
|
|
|
peersConnected | number | tr_stat
|
|
|
|
peersFrom | object (see below) | n/a
|
|
|
|
peersGettingFromUs | number | tr_stat
|
|
|
|
peersKnown | number | tr_stat
|
|
|
|
peersSendingToUs | number | tr_stat
|
|
|
|
pieceCount | tnumber | tr_info
|
|
|
|
pieceSize | tnumber | tr_info
|
|
|
|
priorities | array (see below) | n/a
|
2008-08-22 17:59:31 +00:00
|
|
|
rateDownload (B/s) | number | tr_stat
|
|
|
|
rateUpload (B/s) | number | tr_stat
|
2008-10-15 19:53:57 +00:00
|
|
|
recheckProgress | 'double' | tr_stat
|
2008-07-26 14:47:07 +00:00
|
|
|
scrapeResponse | string | tr_stat
|
|
|
|
scrapeURL | string | tr_stat
|
|
|
|
seeders | number | tr_stat
|
|
|
|
sizeWhenDone | number | tr_stat
|
|
|
|
startDate | number | tr_stat
|
|
|
|
status | number | tr_stat
|
|
|
|
swarmSpeed (K/s) | number | tr_stat
|
|
|
|
timesCompleted | number | tr_stat
|
|
|
|
trackers | array (see below) | n/a
|
|
|
|
totalSize | number | tr_info
|
|
|
|
uploadedEver | number | tr_stat
|
|
|
|
uploadLimitMode | number | tr_torrent
|
|
|
|
uploadLimit | number | tr_torrent
|
|
|
|
uploadRatio | 'double' | tr_stat
|
|
|
|
wanted | array (see below) | n/a
|
|
|
|
webseeds | array (see below) | n/a
|
|
|
|
webseedsSendingToUs | number | tr_stat
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
-----------------------+--------------------------------------+
|
|
|
|
files | array of objects, each containing: |
|
2008-08-22 17:59:31 +00:00
|
|
|
+-------------------------+------------+
|
|
|
|
| key | type |
|
|
|
|
| bytesCompleted | number | tr_torrent
|
|
|
|
| length | number | tr_info
|
|
|
|
| name | string | tr_info
|
|
|
|
-----------------------+--------------------------------------+
|
|
|
|
peers | array of objects, each containing: |
|
|
|
|
+-------------------------+------------+
|
|
|
|
| address | string | tr_peer_stat
|
|
|
|
| clientName | string | tr_peer_stat
|
|
|
|
| clientIsChoked | 'boolean' | tr_peer_stat
|
|
|
|
| clientIsInterested | 'boolean' | tr_peer_stat
|
|
|
|
| isDownloadingFrom | 'boolean' | tr_peer_stat
|
|
|
|
| isEncrypted | 'boolean' | tr_peer_stat
|
|
|
|
| isIncoming | 'boolean' | tr_peer_stat
|
|
|
|
| isUploadingTo | 'boolean' | tr_peer_stat
|
|
|
|
| peerIsChoked | 'boolean' | tr_peer_stat
|
|
|
|
| peerIsInterested | 'boolean' | tr_peer_stat
|
2008-11-20 20:39:19 +00:00
|
|
|
| port | number | tr_peer_stat
|
2008-08-22 17:59:31 +00:00
|
|
|
| progress | 'double' | tr_peer_stat
|
|
|
|
| rateToClient (B/s) | number | tr_peer_stat
|
|
|
|
| rateToPeer (B/s) | number | tr_peer_stat
|
2008-07-26 14:47:07 +00:00
|
|
|
-----------------------+--------------------------------------+
|
|
|
|
peersFrom | an object containing: |
|
2008-08-22 17:59:31 +00:00
|
|
|
+-------------------------+------------+
|
|
|
|
| fromCache | number | tr_stat
|
|
|
|
| fromIncoming | number | tr_stat
|
|
|
|
| fromPex | number | tr_stat
|
|
|
|
| fromTracker | number | tr_stat
|
2008-07-26 14:47:07 +00:00
|
|
|
-----------------------+--------------------------------------+
|
|
|
|
priorities | an array of tr_info.filecount | tr_info
|
|
|
|
| numbers. each is the tr_priority_t |
|
|
|
|
| mode for the corresponding file. |
|
|
|
|
-----------------------+--------------------------------------+
|
|
|
|
trackers | array of objects, each containing: |
|
2008-08-22 17:59:31 +00:00
|
|
|
+-------------------------+------------+
|
|
|
|
| announce | string | tr_info
|
|
|
|
| scrape | string | tr_info
|
|
|
|
| tier | number | tr_info
|
2008-07-26 14:47:07 +00:00
|
|
|
-----------------------+--------------------------------------+
|
|
|
|
wanted | an array of tr_info.fileCount | tr_info
|
|
|
|
| 'booleans' true if the corresponding |
|
|
|
|
| file is to be downloaded. |
|
|
|
|
-----------------------+--------------------------------------+
|
|
|
|
webseeds | an array of strings: |
|
2008-08-22 17:59:31 +00:00
|
|
|
+-------------------------+------------+
|
|
|
|
| webseed | string | tr_info
|
|
|
|
+-------------------------+------------+
|
2008-06-16 03:47:50 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2008-06-17 16:25:13 +00:00
|
|
|
Say we want to get the name and total size of torrents #7 and #10.
|
2008-06-16 03:47:50 +00:00
|
|
|
|
|
|
|
Request:
|
2008-05-10 14:29:59 +00:00
|
|
|
|
|
|
|
{
|
2008-06-16 03:47:50 +00:00
|
|
|
"arguments": {
|
2008-08-13 16:57:12 +00:00
|
|
|
"fields": [ "id", "name", "totalSize" ]
|
2008-08-19 16:36:59 +00:00
|
|
|
},
|
2008-06-17 16:25:13 +00:00
|
|
|
"method": "torrent-get",
|
2008-05-13 17:31:09 +00:00
|
|
|
"tag": 39693
|
2008-05-10 14:29:59 +00:00
|
|
|
}
|
|
|
|
|
2008-06-16 03:47:50 +00:00
|
|
|
|
|
|
|
Response:
|
2008-05-10 14:29:59 +00:00
|
|
|
|
|
|
|
{
|
2008-05-12 23:51:17 +00:00
|
|
|
"arguments": {
|
2008-06-17 16:25:13 +00:00
|
|
|
"torrents": [
|
2008-05-18 16:44:30 +00:00
|
|
|
{
|
2008-07-26 14:47:07 +00:00
|
|
|
"id": 10,
|
2008-06-16 03:47:50 +00:00
|
|
|
"name": "Fedora x86_64 DVD",
|
|
|
|
"totalSize", 34983493932,
|
2008-08-19 16:36:59 +00:00
|
|
|
},
|
2008-06-16 22:11:50 +00:00
|
|
|
{
|
2008-07-26 14:47:07 +00:00
|
|
|
"id": 7,
|
2008-06-16 22:11:50 +00:00
|
|
|
"name": "Ubuntu x86_64 DVD",
|
|
|
|
"totalSize", 9923890123,
|
2008-08-19 16:36:59 +00:00
|
|
|
}
|
2008-05-18 16:44:30 +00:00
|
|
|
]
|
2008-06-16 22:11:50 +00:00
|
|
|
},
|
|
|
|
"result": "success",
|
|
|
|
"tag": 39693
|
2008-05-10 14:29:59 +00:00
|
|
|
}
|
|
|
|
|
2008-06-17 16:35:33 +00:00
|
|
|
3.4. Adding a Torrent
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-05-12 23:51:17 +00:00
|
|
|
Method name: "torrent-add"
|
|
|
|
|
2008-05-10 16:38:42 +00:00
|
|
|
Request arguments:
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-06-16 03:47:50 +00:00
|
|
|
key | value type & description
|
2008-05-10 14:29:59 +00:00
|
|
|
-------------------+-------------------------------------------------
|
2008-06-17 16:25:13 +00:00
|
|
|
"download-dir" | string path to download the torrent to
|
2009-01-18 15:24:26 +00:00
|
|
|
"filename" | string filename or URL of the .torrent file
|
2008-06-17 16:25:13 +00:00
|
|
|
"metainfo" | string base64-encoded .torrent content
|
|
|
|
"paused" | 'boolean' if true, don't start the torrent
|
|
|
|
"peer-limit" | number maximum number of peers
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-08-13 16:57:12 +00:00
|
|
|
Either "filename" OR "metainfo" MUST be included.
|
2008-05-20 17:33:54 +00:00
|
|
|
All other arguments are optional.
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-05-12 13:05:06 +00:00
|
|
|
Response arguments: on success, a "torrent-added" object in the
|
2008-06-16 03:47:50 +00:00
|
|
|
form of one of 3.3's tr_info objects with the
|
|
|
|
fields for id, name, and hashString.
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-12-09 17:01:49 +00:00
|
|
|
3.5. Removing a Torrent
|
|
|
|
|
|
|
|
Method name: "torrent-remove"
|
|
|
|
|
|
|
|
Request arguments:
|
|
|
|
|
|
|
|
string | value type & description
|
|
|
|
---------------------------+-------------------------------------------------
|
|
|
|
"ids" | array torrent list, as described in 3.1
|
|
|
|
"delete-local-data" | 'boolean' delete local data. (default: false)
|
|
|
|
|
|
|
|
Response arguments: none
|
|
|
|
|
2008-06-18 22:01:15 +00:00
|
|
|
|
|
|
|
4. Session Requests
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-05-10 16:38:42 +00:00
|
|
|
4.1. Session Arguments
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-05-12 16:33:17 +00:00
|
|
|
string | value type & description
|
|
|
|
---------------------------+-------------------------------------------------
|
2008-06-17 16:25:13 +00:00
|
|
|
"encryption" | string "required", "preferred", "tolerated"
|
|
|
|
"download-dir" | string default path to download torrents
|
|
|
|
"peer-limit" | number maximum global number of peers
|
|
|
|
"pex-allowed" | 'boolean' true means allow pex in public torrents
|
|
|
|
"port" | number port number
|
|
|
|
"port-forwarding-enabled" | 'boolean' true means enabled
|
2008-06-22 13:44:50 +00:00
|
|
|
"speed-limit-down" | number max global download speed (in K/s)
|
2008-06-17 16:25:13 +00:00
|
|
|
"speed-limit-down-enabled" | 'boolean' true means enabled
|
2008-06-22 13:44:50 +00:00
|
|
|
"speed-limit-up" | number max global upload speed (in K/s)
|
2008-06-17 16:25:13 +00:00
|
|
|
"speed-limit-up-enabled" | 'boolean' true means enabled
|
2008-12-10 21:46:24 +00:00
|
|
|
"version" | string long version string "$version ($revision)"
|
2009-01-16 01:03:33 +00:00
|
|
|
"rpc-version" | number the current RPC API version
|
|
|
|
"rpc-version-minimum" | number the minimum RPC API version supported
|
|
|
|
|
|
|
|
"rpc-version" indicates the RPC interface version supported by the RPC server.
|
|
|
|
It is incremented when a new version of Transmission changes the RPC interface.
|
|
|
|
|
|
|
|
"rpc-version-minimum" indicates the oldest API supported by the RPC server.
|
|
|
|
It is changes when a new version of Transmission changes the RPC interface
|
|
|
|
in a way that is not backwards compatible. There are no plans for this
|
|
|
|
to be common behavior.
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-06-18 22:01:15 +00:00
|
|
|
4.1.1. Mutators
|
2008-05-10 16:38:42 +00:00
|
|
|
|
2008-05-12 23:51:17 +00:00
|
|
|
Method name: "session-set"
|
2008-12-10 21:46:24 +00:00
|
|
|
Request arguments: one or more of 4.1's arguments, except "version"
|
2008-05-10 16:38:42 +00:00
|
|
|
Response arguments: none
|
|
|
|
|
2008-06-18 22:01:15 +00:00
|
|
|
4.1.2. Accessors
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-05-12 23:51:17 +00:00
|
|
|
Method name: "session-get"
|
2008-05-10 14:29:59 +00:00
|
|
|
Request arguments: none
|
2008-05-10 22:14:19 +00:00
|
|
|
Response arguments: all of 4.1's arguments
|
2008-05-10 14:29:59 +00:00
|
|
|
|
2008-06-18 22:01:15 +00:00
|
|
|
4.2. Session Statistics
|
|
|
|
|
|
|
|
Method name: "session-stats"
|
|
|
|
|
|
|
|
Request arguments: none
|
|
|
|
|
|
|
|
Response arguments:
|
|
|
|
|
|
|
|
string | value type
|
|
|
|
---------------------------+-------------------------------------------------
|
|
|
|
"activeTorrentCount" | number
|
|
|
|
"downloadSpeed" | number
|
|
|
|
"pausedTorrentCount" | number
|
|
|
|
"torrentCount" | number
|
|
|
|
"uploadSpeed" | number
|
2009-01-19 21:17:29 +00:00
|
|
|
---------------------------+-------------------------------+
|
|
|
|
"cumulative-stats" | object, containing: |
|
|
|
|
+------------------+------------+
|
|
|
|
| uploadedBytes | number | tr_session_stats
|
|
|
|
| downloadedBytes | number | tr_session_stats
|
|
|
|
| filesAdded | number | tr_session_stats
|
|
|
|
| sessionCount | number | tr_session_stats
|
|
|
|
| secondsActive | number | tr_session_stats
|
|
|
|
---------------------------+-------------------------------+
|
|
|
|
"current-stats" | object, containing: |
|
|
|
|
+------------------+------------+
|
|
|
|
| uploadedBytes | number | tr_session_stats
|
|
|
|
| downloadedBytes | number | tr_session_stats
|
|
|
|
| filesAdded | number | tr_session_stats
|
|
|
|
| sessionCount | number | tr_session_stats
|
|
|
|
| secondsActive | number | tr_session_stats
|
2008-06-18 22:01:15 +00:00
|
|
|
|
|
|
|
|
2009-01-16 01:03:33 +00:00
|
|
|
5.0. Protocol Versions
|
|
|
|
|
|
|
|
The following changes have been made to the RPC interface:
|
|
|
|
|
|
|
|
RPC | Release | Backwards | |
|
|
|
|
Vers. | Version | Compat? | Method | Description
|
|
|
|
------+---------+-----------+----------------+-------------------------------
|
|
|
|
1 | 1.30 | n/a | n/a | Initial version
|
|
|
|
------+---------+-----------+----------------+-------------------------------
|
|
|
|
2 | 1.34 | yes | torrent-get | new arg "peers"
|
|
|
|
------+---------+-----------+----------------+-------------------------------
|
|
|
|
3 | 1.41 | yes | torrent-get | added "port" to "peers"
|
|
|
|
| | | torrent-get | new arg "downloaders"
|
|
|
|
| | | session-get | new arg "version"
|
|
|
|
| | | torrent-remove | new method
|
|
|
|
------+---------+-----------+----------------+-------------------------------
|
|
|
|
4 | 1.50 | yes | session-get | new arg "rpc-version"
|
|
|
|
| | | session-get | new arg "rpc-version-minimum"
|
2009-01-19 21:17:29 +00:00
|
|
|
| | | session-stats | added "cumulative-stats"
|
|
|
|
| | | session-stats | added "current-stats"
|
2009-01-17 14:58:50 +00:00
|
|
|
| | | torrent-get | new arg "downloadDir"
|
2009-01-16 01:03:33 +00:00
|
|
|
------+---------+-----------+----------------+-------------------------------
|
|
|
|
|