示例#1
0
        public async Task CreateBulkExport()
        {
            YulsnExportSettings model = new YulsnExportSettings
            {
                ColumnDelimiter     = ",",
                CreatedDateTimeFrom = DateTimeOffset.UtcNow.AddDays(-7),
                CreatedDateTimeTo   = DateTimeOffset.UtcNow.AddDays(-1),
                Type         = ExportType.Events,
                ItemType     = "test",
                RowDelimiter = Environment.NewLine,
                Fields       = new List <string> {
                    "Id", "Type", "SubType"
                },
                SuffixFileName = "Api Test"
            };

            await yulsnClient.CreateBulkExportAsync(model);
        }
 public Task CreateBulkExportAsync(YulsnExportSettings settings) =>
 SendAsync <object>(HttpMethod.Post, "api/v1/BulkExport", settings);