exportEntities method

Future<List<String>?> exportEntities(
  1. String exportType,
  2. String apiKey,
  3. String outputFormat, {
  4. String? filter,
  5. String? listSeparatorToken,
  6. bool? excludePreviouslyExported,
  7. DateTime? createdEarliestTime,
  8. DateTime? createdOldestTime,
})

Export inboxes link callable via browser

Parameters:

Implementation

Future<List<String>?> exportEntities(String exportType, String apiKey, String outputFormat, { String? filter, String? listSeparatorToken, bool? excludePreviouslyExported, DateTime? createdEarliestTime, DateTime? createdOldestTime, }) async {
  final response = await exportEntitiesWithHttpInfo(exportType, apiKey, outputFormat,  filter: filter, listSeparatorToken: listSeparatorToken, excludePreviouslyExported: excludePreviouslyExported, createdEarliestTime: createdEarliestTime, createdOldestTime: createdOldestTime, );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
    final responseBody = await _decodeBodyBytes(response);
    return (await apiClient.deserializeAsync(responseBody, 'List<String>') as List)
      .cast<String>()
      .toList();

  }
  return null;
}