freebox_api_php/docs/services/download/download.md

109 lines
4.1 KiB
Markdown
Raw Permalink Normal View History

2016-06-11 21:29:34 +02:00
# download
2016-06-11 23:16:01 +02:00
**Namespace** : alphayax\freebox\api\v3\services\download
# Overview
2016-06-11 21:29:34 +02:00
2016-06-11 23:16:01 +02:00
- [BlackList](download.md#BlackList)
2016-06-25 14:28:08 +02:00
- [Tracker](download.md#Tracker)
2016-06-11 23:16:01 +02:00
- [Feed](download.md#Feed)
2016-06-25 14:28:08 +02:00
- [Configuration](download.md#Configuration)
2016-06-11 23:16:01 +02:00
- [Peer](download.md#Peer)
2016-06-25 14:28:08 +02:00
- [Download](download.md#Download)
2016-06-11 23:16:01 +02:00
<a name="BlackList"></a>
2016-06-11 21:29:34 +02:00
## BlackList
2016-06-11 23:16:01 +02:00
**Class** : alphayax\freebox\api\v3\services\download\BlackList
2016-06-11 21:29:34 +02:00
### Public methods
| Method | Description |
|---|---|
2016-06-11 23:16:01 +02:00
| `getAllFromDownloadTaskId` | Get the list of blacklist entries for a given download Attempting to call this method on a download other than bittorent will fail. |
| `emptyBlackListFromDownloadId` | Empty the blacklist for a given download This call allow to remove all global entries, and entries related to the given download |
2016-06-11 21:29:34 +02:00
| `removeBlackListEntry` | Delete a particular blacklist entry |
| `addBlackListEntry` | Add a blacklist entry |
2016-06-25 14:28:08 +02:00
<a name="Tracker"></a>
## Tracker
2016-06-11 21:29:34 +02:00
2016-06-25 14:28:08 +02:00
**Class** : alphayax\freebox\api\v3\services\download\Tracker
2016-06-11 21:29:34 +02:00
### Public methods
| Method | Description |
|---|---|
2016-06-25 14:28:08 +02:00
| `getAll` | Each torrent Download task has one or more DownloadTracker. Each tracker is identified by its announce URL. |
| `add` | Add a new tracker Attempting to call this method on a download other than bittorent will fail |
| `remove` | Remove a tracker Attempting to call this method on a download other than bittorent will fail |
| `update` | Update a tracker Attempting to call this method on a download other than bittorent will fail |
2016-06-11 21:29:34 +02:00
2016-06-11 23:16:01 +02:00
<a name="Feed"></a>
2016-06-11 21:29:34 +02:00
## Feed
2016-06-11 23:16:01 +02:00
**Class** : alphayax\freebox\api\v3\services\download\Feed
2016-06-11 21:29:34 +02:00
### Public methods
| Method | Description |
|---|---|
| `getAllFeeds` | Get the list of all download Feeds |
| `getFeedFromId` | Gets the DownloadFeed with the given id |
| `addFeed` | Add a Download Feed |
| `removeFeed` | Delete a Download Feed |
| `updateFeed` | Update a Download Feed |
2016-06-11 23:16:01 +02:00
| `refreshFeed` | Remotely fetches the RSS feed and updates it. Note that if the remote feed specifies a TTL, trying to update before the ttl will result in feed_is_recent error |
| `refreshFeeds` | Remotely fetches the RSS feed and updates it. Note that if the remote feed specifies a TTL, trying to update before the ttl will result in feed_is_recent error |
2016-06-11 21:29:34 +02:00
| `getFeedItems` | Returns the collection of all DownloadFeedItems for a given DownloadFeed |
| `updateFeedItem` | Returns the collection of all DownloadFeedItems for a given DownloadFeed |
| `downloadFeedItem` | Download the specified feed item |
| `markFeedAsRead` | Mark the specified feed id as "Read" |
2016-06-11 21:29:34 +02:00
2016-06-25 14:28:08 +02:00
<a name="Configuration"></a>
## Configuration
**Class** : alphayax\freebox\api\v3\services\download\Configuration
### Public methods
| Method | Description |
|---|---|
| `getConfiguration` | Get the current Download configuration |
| `setConfiguration` | Update the Download configuration |
| `updateThrottlingMode` | You can force the throttling mode using this method. You can use any of the throttling modes defined in DlThrottlingConfig. |
2016-06-11 23:16:01 +02:00
<a name="Peer"></a>
2016-06-11 21:29:34 +02:00
## Peer
2016-06-11 23:16:01 +02:00
**Class** : alphayax\freebox\api\v3\services\download\Peer
2016-06-11 21:29:34 +02:00
### Public methods
| Method | Description |
|---|---|
2016-06-11 23:16:01 +02:00
| `getAll` | Get the list of peers for a given Download Attempting to call this method on a download other than bittorent will fail |
2016-06-11 21:29:34 +02:00
2016-06-25 14:28:08 +02:00
<a name="Download"></a>
## Download
2016-06-11 21:29:34 +02:00
2016-06-25 14:28:08 +02:00
**Class** : alphayax\freebox\api\v3\services\download\Download
2016-06-11 21:29:34 +02:00
### Public methods
| Method | Description |
|---|---|
2016-06-25 14:28:08 +02:00
| `getAll` | Returns the collection of all Download tasks |
| `getFromId` | Returns the Download task with the given id |
| `getLogFromId` | Get the current system info |
| `deleteFromId` | Delete a download task (conserve data) |
| `eraseFromId` | Delete a download task (erase data) |
| `update` | Update a download task |
| `addFromUrl` | Add a download task with the specified URL |
| `addFromUrls` | Add a download task with all the specified URLs |
| `addFromFile` | Add a download task with the specified file (torrent, nzb...) |
| `getStats` | Returns the Download task with the given id |
| `getFilesFromId` | Returns the downloaded files with the given task id |
| `updateFilePriority` | Update a download priority |