Create a new KiiApplication.
You don't have to create a KiiApplication by yourself unless you want to handle more than one context at a time.
e.g. Either multiple applications or two different context with a same application (like App admin and App user)
The application key found in your Kii developer console
An internal flag to determine if the login user is admin context or not.
KiiApplication instance
Creates a reference to a bucket for this app
The bucket will be created/accessed within this app's scope
The name of the bucket the app should create/access
A working KiiBucket object
Creates a reference to a encrypted bucket for this app
The bucket will be created/accessed within this app's scope
The name of the bucket the app should create/access
A working KiiEncryptedBucket object
Get the access token for the user - only available if the user is currently logged in
Access token
Get the access token expiration.
Retrieve the current app ID
The current app ID
Retrieve the current app key
The current app key
Get the current user.
Creates a reference to a group with the given name
groupName An application-specific group name
A new KiiGroup reference
Get a list of topics.
You can specify the pagination key with the nextPaginationKey. If empty string or no string object is provided, this API regards no paginationKey specified.
return promise object.
Generated using TypeDoc
KiiApplication represents an application info.
While initializing
Kii
, it automatically generates an KiiApplication instance, and that will be used by default.Optionally, you may create a separate KiiApplication for switching the context.
example of copying an object from an app to the other
example of using multiple contexts at a time