Creates an instance of Client.
Basis example with API key
const client = new Client("mySecretKey");
Example with API key & redis connect details
const client = new Client("mySecretKey", {
redis: {
url: "redis://host:port",
password: "mySecretPassword",
expire: {
media: 60 // cached media entries expire after x seconds
}
}
});
Optional apiKey: stringThe API key used for authentication.
Optional clientSettings: ClientSettingsThe settings object for the client.
Optional Private _apiThe API key used for authentication.
The characters search object for searching for characters.
The fetcher object used for making API requests.
The media search object for searching for media.
Optional redisThe Redis client object used for caching.
The settings object for the client.
The media search object for searching for users.
Generated using TypeDoc
Represents a client for accessing the API.