You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| allowZip | string | ❌ | Tells TorBox if you want to allow this torrent to be zipped or not. TorBox only zips if the torrent is 100 files or larger. |
8
+
| asQueued | string | ❌ | Tells TorBox you want this torrent instantly queued. This is bypassed if user is on free plan, and will process the request as normal in this case. Optional. |
| name | string | ❌ | The name you want the torrent to be. Optional. |
12
+
| seed | string | ❌ | Tells TorBox your preference for seeding this torrent. 1 is auto. 2 is seed. 3 is don't seed. Optional. Default is 1, or whatever the user has in their settings. Overwrites option in settings. |
|[getQueuedDownloads](#getqueueddownloads)| ### Overview Retrieves all of a user's queued downloads by type. If you want to get all 3 types, "torrent", "usenet" and "webdl" then you will need to run this request 3 times, each with the different type. ### Authorization Requires an API key using the Authorization Bearer Header. |
8
+
|[controlQueuedDownloads](#controlqueueddownloads)| ### Overview Controls a queued torrent. By sending the queued torrent's ID and the type of operation you want to perform, it will perform that action on the queued torrent. Operations are either: - **Delete**`deletes the queued download from your account` - **Start**`starts a queued download, cannot be used with the "all" parameter` ### Authorization Requires an API key using the Authorization Bearer Header. |
9
+
10
+
## getQueuedDownloads
11
+
12
+
### Overview Retrieves all of a user's queued downloads by type. If you want to get all 3 types, "torrent", "usenet" and "webdl" then you will need to run this request 3 times, each with the different type. ### Authorization Requires an API key using the Authorization Bearer Header.
| bypassCache | string | ❌ | Allows you to bypass the cached data, and always get fresh information. Useful if constantly querying for fresh download stats. Otherwise, we request that you save our database a few calls. |
23
+
| id | string | ❌ | Determines the queued download requested, will return an object rather than list. Optional. |
24
+
| offset | string | ❌ | Determines the offset of items to get from the database. Default is 0. Optional. |
25
+
| limit | string | ❌ | Determines the number of items to recieve per request. Default is 1000. Optional. |
26
+
| type | string | ❌ | The type of the queued download you want to retrieve. Can be "torrent", "usenet" or "webdl". Optional. Default is "torrent". |
27
+
28
+
**Example Usage Code Snippet**
29
+
30
+
```typescript
31
+
import { TorboxApi } from'@torbox/torbox-api';
32
+
33
+
(async () => {
34
+
const torboxApi =newTorboxApi({
35
+
token: 'YOUR_TOKEN',
36
+
});
37
+
38
+
const { data } =awaittorboxApi.queued.getQueuedDownloads('api_version', {
39
+
bypassCache: 'boolean',
40
+
id: 'integer',
41
+
offset: 'integer',
42
+
limit: 'integer',
43
+
type: 'string',
44
+
});
45
+
46
+
console.log(data);
47
+
})();
48
+
```
49
+
50
+
## controlQueuedDownloads
51
+
52
+
### Overview Controls a queued torrent. By sending the queued torrent's ID and the type of operation you want to perform, it will perform that action on the queued torrent. Operations are either: - **Delete**`deletes the queued download from your account` - **Start**`starts a queued download, cannot be used with the "all" parameter` ### Authorization Requires an API key using the Authorization Bearer Header.
0 commit comments