# Namespace: QB

## QB

### Namespaces

addressbook
chat
content
data
users
webrtc

### 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 211
  Create new session(read more).

  Name | Type | Description
  --- | --- | ---
  `appIdOrToken` | String | Should be applecationID or QBtoken.
  `callback` | createSessionCallback |

#### staticQB.destroySession(callback)

qbMain.js, line 226
  Destroy current session(read more).

  Name | Type | Description
  --- | --- | ---
  `callback` | destroySessionCallback | The destroySessionCallback function.

#### staticQB.getSession(callback)

qbMain.js, line 161
  Return current session(read more).

  Name | Type | Description
  --- | --- | ---
  `callback` | getSessionCallback | The getSessionCallback function.

#### staticQB.initWithAppId(appId, accountKey, configMap)

qbMain.js, line 143
  Init QuickBlox SDK with User Account data to start session with token(read more).

  Name | Type | Description
  --- | --- | ---
  `appId` | Number | Application ID (from your admin panel).
  `accountKey` | String | Number | Account key (from your admin panel).
  `configMap` | Object | Settings object for QuickBlox SDK.

#### staticQB.login(params, callback)

qbMain.js, line 242
  Login to QuickBlox application(read more).

  Name | Type | Description
  --- | --- | ---
  `params` | Object | Params object for login into the session.
  `callback` | loginCallback | The loginCallback function.

#### staticQB.logout(callback)

qbMain.js, line 257
  Remove user from current session, but doesn't destroy it(read more).

  Name | Type | Description
  --- | --- | ---
  `callback` | logoutCallback | The logoutCallback function.

### Type Definitions

#### QB.getSessionCallback(token, callback, error, session)

qbMain.js, line 171
  Set up user session token to current session and return it(read more).

  Name | Type | Description
  --- | --- | ---
  `token` | String | A User Session Token.
  `callback` | getSessionCallback | The getSessionCallback function.
  `error` | Object | The error object.
  `session` | Object | Contains of session object.