Authenticate as app admin.
This api call must not placed on code which can be accessed by browser. This api is intended to be used by server side code like Node.js. If you use this api in code accessible by browser, your application id and application secret could be stolen. Attacker will be act as appadmin and all the data in your application will be suffered.
assigned to your application.
assigned to your application.
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
return promise object.
Authenticate as Thing.
This api is intended to be used in a Thing device, where the user credentials or app admin context is not configured. This Thing must be already registered in Kii Cloud.
vendorThingID of a registered Thing.
password for the registered Thing.
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
return promise object.
Create a KiiThingContext reference
This api is intended to be used in a Thing device, where the user credentials or app admin context is not configured. This Thing must be already registered in Kii Cloud.
thingID of a registered Thing.
token for the registered Thing.
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
return promise object.
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
Returns access token lifetime in seconds.
If access token lifetime has not set explicitly by Kii.setAccessTokenExpiration, returns 0.
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
access token lifetime in seconds.
Retrieve the current app ID
The current app ID
Retrieve the current app key
The current app key
Kii SDK Build Number
current build number of the SDK
Kii SDK Version Number
current version number of the SDK
Creates a reference to a group with the given name
groupName An application-specific group name
A new KiiGroup reference
Creates a reference to a group with the given name and a list of default members
An application-specific group name
An array of KiiUser objects to add to the group
A new KiiGroup reference
Initialize the Kii SDK
Should be the first Kii SDK action your application makes.
The application ID found in your Kii developer console
The application key found in your Kii developer console
KiiApplication instance
Initialize the Kii SDK with a specific URL
Should be the first Kii SDK action your application makes.
The application ID found in your Kii developer console
The application key found in your Kii developer console
site Can be one of the constants KiiSite.US, KiiSite.JP, KiiSite.SG depending on your location.
KiiApplication instance
Gets a list of topics in app scope
You can specify the pagination key with the nextPaginationKey passed by callbacks.success or fullfill callback of promise. If empty string or no string object is provided, this API regards no paginationKey specified.
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
return promise object.
Instantiate KiiServerCodeEntry.
Name of the entry.
Version of the entry.
Version of the Node.js. Currently, supported versions are 0 and 6.
KiiServerCodeEntry instance.
the access token lifetime in seconds. If you don't call this method or call it with 0, token won't be expired. Call this method if you like the access token to be expired after a certain period. Once called, token retrieved by each future authentication will have the specified lifetime. Note that, it will not update the lifetime of token received prior calling this method. Once expired, you have to login again to renew the token.
The life time of access token in seconds.
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
Instantiate topic belongs to application.
name of the topic. Must be a not empty string.
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
topic instance.
Generated using TypeDoc
The main SDK class
This class must be initialized before any Kii SDK functions are performed. This class also allows the application to make some high-level user calls and access some application-wide data at any time using static methods.