public void PushExtracted(Dictionary <string, bool> downloadFolders) { string basePath = @"\\\\ckmasterplex\\h$\\Downloads\\"; //string basePath = @"H:\\Downloads\\"; IWebRequestFactory webReqFac = new WebRequestFactory("http://*****:*****@"{basePath}{entry.Key}"; string body = $@" {{ ""importMode"": ""copy"", ""name"": ""downloadedEpisodesScan"", ""path"": ""{path}"" }} "; IWebResponseFactory webRespFac = new WebResponseFactory(webReqFac.BuildRequest(urlParameters, method, contentType, headers, body)); webRespFac.ExecuteRequest(); } }
public HttpWebRequest QueuedItems() { IWebRequestFactory webReqFac = new WebRequestFactory("http://ckmasterplex:8989/api"); string urlParameters = "/queue"; string method = "GET"; List <string[]> headers = new List <string[]>(); headers.Add(new string[] { "Accept", "application/json" }); headers.Add(new string[] { "X-Api-Key", "e2ddb6b1b3e046bdab2a9a494a5a4d0c" }); return(webReqFac.BuildRequest(urlParameters, method, headers)); }