Downloading files via API
Files uploaded to CMW Tracker can be downloaded both in the interface and externally through the open API of the system. In order to be able to do that:
1. Generate an API token in the Administration area.
2. Write a C# script. Below is a piece of C# code that will download a file with ID 33854 (rev is an analogue of ID when working with attachments):
HttpClient cl = new HttpClient(); var GetTask = cl.GetAsync("https://your_domain.comindware.net/Api/Attachment/Content/rev.33854"); // receiving the file using (var fs = new FileStream(@"c:\report\Tracker\" + name_file, FileMode.CreateNew)) // saving the file to the specified path |