public Export CreateExport(Export export, int customObjectId) { var request = new RestRequest(Method.POST) { Resource = string.Format("/customObject/{0}/export", customObjectId), RequestFormat = DataFormat.Json, RootElement = "export" }; request.AddBody(export); return _client.Execute<Export>(request); }
public Export CreateExport(Export export) { var request = new RestRequest(Method.POST) { Resource = "/contact/export", RequestFormat = DataFormat.Json, RootElement = "export" }; request.AddBody(export); return _client.Execute<Export>(request); }
/// <summary> /// Creates an export in the resource with URI /account/export. Please note that this has not been tested in /// the Bulk API version 2. /// </summary> /// <param name="export">The export object to be created</param> /// <returns>The newly created export object</returns> public async Task<Export> CreateExportAsync(Export export) => await _exportClient.CreateExportAsync(export, BulkUrl.AccountExports);
/// <summary> /// Creates an export in the resource with URI /customObject/<see cref="customObjectId"/>/export. Please note /// that this has not been tested in the Bulk API version 2. /// </summary> /// <param name="export">The export object to be created</param> /// <param name="customObjectId">The unique identifier of the custom object</param> /// <returns>The newly created export object</returns> public async Task<Export> CreateExportAsync(Export export, int customObjectId) => await _exportClient.CreateExportAsync(export, $"/customObject/{customObjectId}/export");