Create a new client for web applications.
The unique app environment base URL which is generated when you create an environment (e.g., development, test, production) for your backend app. You can access envUrl
of your app environment from the Environments panel in Altogic designer. Note that, an AltogicClient object can only access a single app environment, you cannot use a development environment envUrl
to access a test or production environment. To access other environments you need to create additional Altogic client objects with their respective envUrl
values.
The client library key of the app. You can create client keys from the App Settings/Client Library panel in Altogic designer. Besides authenticating your client, client keys are also used to define the authorization rights of each client, e.g., what operations they are allowed to perform on your backend app and define the authorized domains where the client key can be used (e.g., if you list your app domains in your client key configuration, that client key can only be used to make calls to your backend from a front-end app that runs on those specific domains)
AuthManager object is used to manage user authentication and sessions
CacheManager object is used to store and manage objects in Redis cache
DatabaseManager object is used to perform CRUD (create, read, update and delete) and run queries in your app's database
EndpointManager object is used to make http requests to your app endpoints
HTTP client for the browser, Node or React Native. Primarily used to make RESTful API calls you your backend app. Each command that issue through the client library uses the fetcher to relay it to your backend app.
QueueManager object is used to submit messages to a message queue for asynchronous processing
RealtimeManager object is used to send and receive realtime message through websockets
StorageManager object is used to manage the buckets and files of your app's cloud storage
TaskManager object is used to trigger execution of scheduled tasks (e.g., cron jobs) manually
Altogic client options
Returns the authentication manager that can be used to perform user and session management activities.
Returns the cache manager which is used to store and manage objects in Redis cache.
Returns the database manager, which is used to perform CRUD (create, read, update and delete) and run queries in your app's database.
Returns the endpoint manager which is used to make http requests to your app endpoints and execute associated services.
Returns the queue manager which is used to submit messages to a message queue for processing.
Returns the realtime manager, which is used to publish and subscribe (pub/sub) messaging through websockets.
If the client library key is set to enforce session, an active user session is required (e.g., user needs to be logged in) to establish a realtime connection.
Returns the storage manager, which is used to manage buckets and files of your app.
Returns the task manager which is used to trigger scheduled tasks (e.g., cron jobs) for execution.
Generated using TypeDoc
Javascript client for interacting with your backend applications developed in Altogic.
AltogicClient is the main object that you will be using to issue commands to your backend apps. The commands that you can run are grouped below:
Each AltogicClient can interact with one of your app environments (e.g., development, test, production). You cannot create a single client to interact with multiple development, test or production environments at the same time. If you would like to issue commands to other environments, you need to create additional AltogicClient objects using the target environment's
envUrl
.