Skip to main content
Version: 5.7.0

Initialize

To initialize, use this code:

This method initializes the brainCloud client SDK. The information required to initialize can be found on the Application IDs page of the portal.

caution

Initialize must be called before you can call any brainCloud APIs.

Method Parameters

ParameterDescription
serverUrlThe url of the brainCloud server.
secretKeyThe secret key for your app found in the brainCloud portal.
appIdThe id of your app found in the brainCloud portal.
appVersionThe version of your app. This can be used to prevent older versions of your app from logging into brainCloud.

Usage

http://localhost:3000
// If you're using Unity, you can make use of the brainCloudSettings toolbar
string serverUrl = "https://api.braincloudservers.com/dispatcherv2";
string secret = "1234-1234-1234-1234";
string appId = "123456";

_bc.Initialize(serverUrl, secret, appId, "1.0.0");