Creates a reference to a bucket operated by app admin.
The bucket will be created/accessed within this app's scope
A working KiiBucket object
Creates a reference to a encrypted bucket operated by app admin.
The bucket will be created/accessed within this app's scope
A working KiiBucket object
Find registered KiiUser with the email.
If there are no user registers with the specified email or if there are but not verified email yet,
callbacks.failure or reject callback of promise will be called.
If the email is null or empty, callbacks.failure or reject callback of promise will be callded.
Note:
The email to find KiiUser who owns it.
Don't add prefix of "EMAIL:" described in REST API documentation. SDK will take care of it.
return promise object.
Find registered KiiUser with the phone.
If there are no user registers with the specified phone or if there are but not verified phone yet,
callbacks.failure or reject callback of promise will be called.
If the phone is null or empty, callbacks.failure or reject callback of promise will be called.
Note:
The phone number to find KiiUser who owns it.
Don't add prefix of "PHONE:" described in REST API documentation. SDK will take care of it.
return promise object.
Find registered KiiUser with the user name.
If there are no user registers with the specified user name, callbacks.failure or reject callback of promise will be called.
If the user name is null or empty, callbacks.failure or reject callback of promise will be called.
Note:
The user name to find KiiUser who owns it.
Don't add prefix of "LOGIN_NAME:" described in REST API documentation. SDK will take care of it.
return promise object.
Get access token published for app admin.
access token published for app admin.
Creates a reference to a group operated by app admin using group's ID.
Note:
Returned instance from this API can operate existing KiiGroup.
If you want to create a new KiiGroup, please use KiiAppAdminContext.groupWithName.
A working KiiGroup object
Creates a reference to a group operated by app admin.
Note:
Returned instance from this API can not operate existing KiiGroup.
If you want to operate existing KiiGroup, please use KiiAppAdminContext.groupWithURI or KiiAppAdminContext.groupWithID.
A working KiiGroup object
Creates a reference to a group operated by app admin using group's URI.
Note:
Returned instance from this API can operate existing KiiGroup.
If you want to create a new KiiGroup, please use KiiAppAdminContext.groupWithName.
A working KiiGroup object
Gets a list of topics in app scope
You can specify the pagination key with the nextPaginationKey passed by callbacks.success. If empty string or no string object is provided, this API regards no paginationKey specified.
return promise object.
Load thing with thing ID by app admin. Method interface is same as KiiThing.loadWithThingID. Please refer to KiiThing document for details.
registered thing id.
return promise object.
Load thing with vendor thing ID by app admin. Method interface is same as KiiThing.loadWithVendorThingID. Please refer to KiiThing document for details.
registered vendor thing id.
return promise object.
Creates a reference to an object operated by app admin using object`s URI.
A working KiiObject instance
Register new group own by specified user on Kii Cloud with specified ID. This method can be used only by app admin.
If the group that has specified id already exists, registration will be failed.
ID of the KiiGroup
Name of the KiiGroup
An array of KiiUser objects to add to the group
return promise object.
Register user/group as owner of specified thing by app admin.
The ID of thing
instnce of KiiUser/KiiGroup to be registered as owner.
return promise object.
Register user/group as owner of specified thing with password by app admin.
The ID of thing
instnce of KiiUser/KiiGroup to be registered as owner.
The password of thing
return promise object.
Register user/group as owner of specified thing by app admin.
The vendor thing ID of thing
instance of KiiUser/KiiGroupd to be registered as owner.
return promise object.
Register user/group as owner of specified thing with password by app admin.
The vendor thing ID of thing
instance of KiiUser/KiiGroupd to be registered as owner.
The password of thing
return promise object.
Register thing by app admin. Method interface is same as KiiThing.register. Please refer to KiiThing document for details.
of the thing to be registered. Please refer to KiiThing.register for the details of fields.
return promise object.
Creates a reference to a thing operated by app admin.
A working KiiThing object
Creates a reference to a topic operated by app admin
name of the topic. Must be a not empty string.
topic instance.
Creates a reference to a user operated by app admin.
A working KiiUser object
Generated using TypeDoc
represents the app admin context
This class must not referred from code accessible from browser. This class is intended to be used by server side code like Node.js. If you use this class in code accessible by browser, your application client id and client secret could be stolen. Attacker will be act as application admin and all the data in your application will be suffered.
Application administrator context. Entities obtained from this class will be manipulated by application admin.