/// <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); }
/// <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); }
/// <summary> /// Fetch remaining files by cursor /// </summary> public async Task <ListFilesContinueResponse> ListFilesContinue(ListFilesContinueRequest request) { return(await _apiClient.ExecutePostWithResponseAsync <ListFilesContinueResponse>($"files/list/continue", request)); }
/// <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); }