Exemple #1
0
 /// <summary>
 /// Method to download the result of the bulk write job as a CSV file.
 /// </summary>
 /// <param name="downloadedFileURL">the download URL from which you can download the result(CSV file) of the bulk write job.</param>
 /// <returns>FileAPIResponse - FileAPIResponse instance of the FileAPIResponse class which holds the response.</returns>
 public FileAPIResponse DownloadBulkWriteResult(string downloadedFileURL)
 {
     return(BulkWriteAPIHandler.GetInstance(this).DownloadBulkWriteResult(downloadedFileURL));
 }
Exemple #2
0
 /// <summary>
 /// Method to get the details of a bulk write job performed previously.
 /// </summary>
 /// <returns>APIResponse - APIResponse instance of the APIResponse class which holds the API response.</returns>
 public APIResponse GetBulkWriteJobDetails()
 {
     return(BulkWriteAPIHandler.GetInstance(this).GetBulkWriteJobDetails());
 }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="fileContent">uploaded file stream</param>
 /// <param name="fileName">uploaded file name</param>
 /// <param name="headers">uploaded file request headers</param>
 /// <returns>APIResponse - APIResponse instance of the APIResponse class which holds the API response.</returns>
 public APIResponse UploadFile(Stream fileContent, string fileName, Dictionary <string, string> headers)
 {
     return(BulkWriteAPIHandler.GetInstance(this).UploadFile(fileContent, fileName, headers));
 }
Exemple #4
0
 /// <summary>
 /// Method to create a bulk write job.
 /// </summary>
 /// <returns>APIResponse - APIResponse instance of the APIResponse class which holds the API response.</returns>
 public APIResponse CreateBulkWriteJob()
 {
     return(BulkWriteAPIHandler.GetInstance(this).CreateBulkWriteJob());
 }
Exemple #5
0
 /// <summary>
 /// Method to upload a CSV file in ZIP format for bulk write API.
 /// </summary>
 /// <param name="filePath">uploaded zip file path</param>
 /// <param name="headers">uploaded file request headers</param>
 /// <returns>APIResponse - APIResponse instance of the APIResponse class which holds the API response.</returns>
 public APIResponse UploadFile(string filePath, Dictionary <string, string> headers)
 {
     return(BulkWriteAPIHandler.GetInstance(this).UploadFile(filePath, headers));
 }