Changeset 5842
- Timestamp:
- May 16, 2008, 7:31:22 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/rpc-json-spec.txt
r5837 r5842 74 74 Response arguments: none 75 75 76 3.2. Torrent Info Requests 76 3.2. Torrent List 77 78 Method name: "torrent-list". 79 80 Request arguments: none. 81 82 Response arguments: "list", an array of objects that contain two keys: 83 a torrent's name string, and its unique torrent id. 84 85 3.3. Torrent Info Requests 77 86 78 87 Method name: "torrent-info". 79 88 80 Request arguments: 3.1's optional "ids" argument.89 Request arguments: an "id" number specifying a torrent id number 81 90 82 91 Response arguments: "info", an array of objects based on libtransmission's 83 tr_info struct but differ in the following ways:92 tr_info struct but different in the following ways: 84 93 85 94 (1) tr_info's "hash" field is omitted. … … 90 99 91 100 { 92 "arguments": { "id s": [ 7, 10 ]}101 "arguments": { "id": 7 } 93 102 "method": "torrent-info", 94 103 "tag": 39693 … … 101 110 "result": "success", 102 111 "arguments": { 103 "info": [ 104 { 105 "id": 7, 106 "totalSize": 9803930483, 107 "pieceCount": 1209233, 108 "pieceSize": 4096, 109 "name": "Ubuntu x86_64 DVD", 110 ... 111 }, 112 { 113 "id": 10, 114 "totalSize": 2398480394, 115 "pieceCount": 83943, 116 "pieceSize": 12345, 117 "name": "Ubuntu i386 DVD", 118 ... 119 } 120 ] 112 "info": { 113 "id": 7, 114 "totalSize": 9803930483, 115 "pieceCount": 1209233, 116 "pieceSize": 4096, 117 "name": "Ubuntu x86_64 DVD", 118 ... 119 } 121 120 } 122 121 } 123 122 124 3. 3. Torrent Status Requests123 3.4. Torrent Status Requests 125 124 126 125 Method name: "torrent-status" 127 126 128 Request arguments: 3.1's optional "ids" argument.129 130 Response arguments: "status", an array of objects based on131 libtransmission's tr_stat struct but which differin the following ways:127 Request arguments: an "id" int specifying a torrent id number 128 129 Response arguments: "status", an object based on libtransmission's 130 tr_stat struct but differerent in the following ways: 132 131 133 132 (1) tr_stat's "tracker" field is omitted. … … 136 135 (4) tr_info's "name" field is added. 137 136 138 3. 4. Adding a Torrent137 3.5. Adding a Torrent 139 138 140 139 Method name: "torrent-add" … … 152 151 153 152 Response arguments: on success, a "torrent-added" object in the 154 form of one of 3. 2's tr_info objects.155 156 3. 5. Other torrent settings153 form of one of 3.3's tr_info objects. 154 155 3.6. Other torrent settings 157 156 158 157 Common arguments: … … 166 165 "speed-limit-up-enabled" | boolean true if the upload speed is limited 167 166 168 3. 5.1. Mutators167 3.6.1. Mutators 169 168 170 169 Method name: "torrent-set" 171 Request arguments: 3.1's "ids", plus one or more of 3. 5's arguments170 Request arguments: 3.1's "ids", plus one or more of 3.6's arguments 172 171 Response arguments: none 173 172 174 3. 5.2. Accessors173 3.6.2. Accessors 175 174 176 175 Method name: "torrent-get" 177 176 Request arguments: none 178 177 Response arguments: A "torrents" list of objects containing all 179 of 3. 5's arguments plus the torrent's "id" int.178 of 3.6's arguments plus the torrent's "id" int. 180 179 181 180 182 3. 6File Priorities181 3.7 File Priorities 183 182 184 183 Common arguments: … … 192 191 "priority-normal" | array indices of one or more normal-priority files 193 192 194 3. 6.1. Mutators193 3.7.1. Mutators 195 194 196 195 Method name: "torrent-set-priorities" 197 Request arguments: 3.1's "ids", plus one or more of 3. 6's arguments196 Request arguments: 3.1's "ids", plus one or more of 3.7's arguments 198 197 Response arguments: none 199 198 200 3. 6.2. Accessors199 3.7.2. Accessors 201 200 202 201 Method name: "torrent-get-priorities" 203 202 Request arguments: none 204 203 Response arguments: A "torrents" list of objects containing all 205 of 3. 6's arguments plus the torrent's "id" int.204 of 3.7's arguments plus the torrent's "id" int. 206 205 207 206 4. Session Status Requests
Note: See TracChangeset
for help on using the changeset viewer.