SandboxClient

A client for interacting with EG Lodging Connectivity Sandbox GraphQL 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:

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

Constructors

Link copied to clipboard
constructor(config: ClientConfiguration)

Creates a new instance of SandboxClient using the provided configuration.

Functions

Link copied to clipboard
open override fun <T : Mutation.Data> execute(mutation: Mutation<T>): T

Executes a GraphQL mutation and returns the result.

open override fun <T : Query.Data> execute(query: Query<T>): T

Executes a GraphQL query and returns the result.