Namespace: QB

QB

Namespaces

addressbook
chat
content
data
users

Members

staticQB.buildNumber

Return current build number of QuickBlox JavaScript SDK

staticQB.version

Return current version of QuickBlox JavaScript SDK

Methods

staticQB.createSession(appIdOrToken, callback)

qbMain.js, line 117
Creat new session. More info
Name Type Description
appIdOrToken String Should be applecationID or QBtoken.
callback createSessionCallback -

staticQB.destroySession(callback)

qbMain.js, line 132
Destroy current session. More info
Name Type Description
callback destroySessionCallback The destroySessionCallback function.

staticQB.getSession(callback)

qbMain.js, line 101
Return current session
Name Type Description
callback getSessionCallback The getSessionCallback function.

staticQB.init(appIdOrToken, authKeyOrAppId, authSecret, configMap)

qbMain.js, line 37
Name Type Description
appIdOrToken Number | String Application ID (from your admin panel) or Session Token.
authKeyOrAppId String | Number Authorization key or Application ID. You need to set up Application ID if you use session token as appIdOrToken parameter.
authSecret String Authorization secret key (from your admin panel).
configMap Object Settings object for QuickBlox SDK.

staticQB.login(params, callback)

qbMain.js, line 148
Login to QuickBlox application. More info
Name Type Description
params Object Params object for login into the session.
callback loginCallback The loginCallback function.

staticQB.logout(callback)

qbMain.js, line 163
Remove user from current session, but doesn't destroy it.
Name Type Description
callback logoutCallback The logoutCallback function.