All URIs are relative to https://api.mailslurp.com

MethodHTTP requestDescription
exportEntitiesGET /exportExport inboxes link callable via browser
getExportLinkPOST /exportGet export link

kotlin.collections.List<kotlin.ByteArray> exportEntities(exportType, apiKey, outputFormat, filter, listSeparatorToken, excludePreviouslyExported, createdEarliestTime, createdOldestTime)

Export inboxes link callable via browser

Example

// Import classes:
//import com.mailslurp.infrastructure.*
//import com.mailslurp.models.*

val apiInstance = ExportControllerApi()
val exportType : kotlin.String = exportType_example // kotlin.String | 
val apiKey : kotlin.String = apiKey_example // kotlin.String | 
val outputFormat : kotlin.String = outputFormat_example // kotlin.String | 
val filter : kotlin.String = filter_example // kotlin.String | 
val listSeparatorToken : kotlin.String = listSeparatorToken_example // kotlin.String | 
val excludePreviouslyExported : kotlin.Boolean = true // kotlin.Boolean | 
val createdEarliestTime : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | 
val createdOldestTime : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | 
try {
    val result : kotlin.collections.List<kotlin.ByteArray> = apiInstance.exportEntities(exportType, apiKey, outputFormat, filter, listSeparatorToken, excludePreviouslyExported, createdEarliestTime, createdOldestTime)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling ExportControllerApi#exportEntities")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling ExportControllerApi#exportEntities")
    e.printStackTrace()
}

Parameters

NameTypeDescriptionNotes
exportTypekotlin.String[enum: INBOXES, CONTACTS, ATTACHMENTS, EMAILS]
apiKeykotlin.String
outputFormatkotlin.String[enum: CSV_DEFAULT, CSV_EXCEL]
filterkotlin.String[optional]
listSeparatorTokenkotlin.String[optional]
excludePreviouslyExportedkotlin.Boolean[optional]
createdEarliestTimejava.time.OffsetDateTime[optional]
createdOldestTimejava.time.OffsetDateTime[optional]

Return type

kotlin.collections.List<kotlin.ByteArray>

Authorization

Configure API_KEY: ApiClient.apiKey[“x-api-key”] = "" ApiClient.apiKeyPrefix[“x-api-key”] = ""

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

ExportLink getExportLink(exportType, exportOptions, apiKey)

Get export link

Example

// Import classes:
//import com.mailslurp.infrastructure.*
//import com.mailslurp.models.*

val apiInstance = ExportControllerApi()
val exportType : kotlin.String = exportType_example // kotlin.String | 
val exportOptions : ExportOptions =  // ExportOptions | 
val apiKey : kotlin.String = apiKey_example // kotlin.String | 
try {
    val result : ExportLink = apiInstance.getExportLink(exportType, exportOptions, apiKey)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling ExportControllerApi#getExportLink")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling ExportControllerApi#getExportLink")
    e.printStackTrace()
}

Parameters

NameTypeDescriptionNotes
exportTypekotlin.String[enum: INBOXES, CONTACTS, ATTACHMENTS, EMAILS]
exportOptionsExportOptions
apiKeykotlin.String[optional]

Return type

ExportLink

Authorization

Configure API_KEY: ApiClient.apiKey[“x-api-key”] = "" ApiClient.apiKeyPrefix[“x-api-key”] = ""

HTTP request headers

  • Content-Type: application/json
  • Accept: /