import { BaseClient } from "https://deno.land/x/dynablox_opencloud@v0.2.2/src/clients/BaseClient.ts";
The BaseClient for the API client. This is to be extended by other clients.
Includes the barebone structure for all API clients.
Constructors
new
BaseClient(options: BaseClientOptions)Constructs a new BaseClient with the credentials
, environmentURLOptions
, and aliases
.
Properties
readonly
credentials: RESTClientAuthenticationreadonly
rest: RESTControllerThe RESTController to be used in the entirety of the client. It is used for requesting data and managing data.
readonly
services: ServicesThe services that utillize the RESTController and have their own methods for interacting with the Roblox web API.
Methods
setCredentialsValue(credentials: ClientAuthentication["value"]): void
Set the current credentials value.
setDefaultHeaders(headers: Record<string, string> | Headers): void
Set the default headers from the RESTController.