Beispiel #1
0
 private static void DownloadZipPackagesInternal(string packageName, string destinationPath)
 {
     try {
         Console.WriteLine("Start download packages ({0}).", packageName);
         var    packageNames = string.Format("\"{0}\"", packageName.Replace(" ", string.Empty).Replace(",", "\",\""));
         string requestData  = "[" + packageNames + "]";
         CreatioClient.DownloadFile(GetZipPackageUrl, destinationPath, requestData);
         Console.WriteLine("Download packages ({0}) completed.", packageName);
     } catch (Exception) {
         Console.WriteLine("Download packages ({0}) not completed.", packageName);
     }
 }
Beispiel #2
0
 public void DownloadFile(string url, string filePath, string requestData)
 {
     _creatioClient.DownloadFile(url, filePath, requestData);
 }