FileManagementClient

A client for interacting with EG Lodging Connectivity messages attachments REST API.

This client is configured with a ClientConfiguration that includes authentication details, and it automatically determines the appropriate API endpoints based on the environment (e.g., production or test).

Parameters

config

The ClientConfiguration that includes API credentials and other optional parameters such as environment, timeouts, and logging masking options.

Example usage:

FileManagementClient(
ClientConfiguration
.builder()
.key("API_KEY")
.secret("API_SECRET")
.build()
)

Constructors

Link copied to clipboard
constructor(config: ClientConfiguration)

Creates a new instance of FileManagementClient using the provided configuration.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun download(id: String, type: String? = null, value: String? = null): ByteArray

API that can be used to download file using identifier associated to it

Link copied to clipboard
fun downloadWithResponse(id: String, type: String? = null, value: String? = null): <Error class: unknown class><ByteArray>

API that can be used to download file using identifier associated to it

Link copied to clipboard
open suspend fun throwServiceException(response: HttpResponse, operationId: String)
Link copied to clipboard
fun upload(content: File, type: String? = null, value: String? = null): Upload201Response

API that can be used to upload file and get identifier associated to it

Link copied to clipboard
fun uploadWithResponse(content: File? = null, type: String? = null, value: String? = null): <Error class: unknown class><Upload201Response>

API that can be used to upload file and get identifier associated to it