Esempio n. 1
0
        /// <summary>
        /// Add a transfer from url, If you want to upload a torrent file, use /files/upload endpoint.
        /// </summary>
        public async Task <Transfer> AddTransfer(AddTransferRequest request)
        {
            var response = await _apiClient.ExecutePostWithResponseAsync <AddTransferResponse>("transfers/add", request);

            return(response.Transfer);
        }
Esempio n. 2
0
        /// <summary>
        /// Updates an RSS feed with the given parameters
        /// </summary>
        public async Task <Feed> UpdateFeed(UpdateFeedRequest request)
        {
            var response = await _apiClient.ExecutePostWithResponseAsync <UpdateFeedResponse>($"rss/{request.Id}", request);

            return(response.Feed);
        }
Esempio n. 3
0
 /// <summary>
 /// Fetch remaining files by cursor
 /// </summary>
 public async Task <ListFilesContinueResponse> ListFilesContinue(ListFilesContinueRequest request)
 {
     return(await _apiClient.ExecutePostWithResponseAsync <ListFilesContinueResponse>($"files/list/continue", request));
 }
Esempio n. 4
0
        /// <summary>
        /// Creates a zip link
        /// </summary>
        /// <returns>The id of the ZIP created</returns>
        public async Task <long> CreateZip(CreateZipRequest request)
        {
            var response = await _apiClient.ExecutePostWithResponseAsync <CreateZipResponse>("zips/create", request);

            return(response.ZipId);
        }