Cloud Code Bridge
This section contains Cloud Code bridge methods that are exclusive to Server to Server.
To access the standard Bridge methods from S2S, see the Bridge documentation under Cloud Code.
📄️ CallAPI
Generic method for calling S2S API services.
📄️ CallScript
This is basically a shortcut method for calling scripts within scripts.
📄️ GetAppId
This returns the appId of the script context.
📄️ GetClientAppId
This returns the appId of the peer client script context.
📄️ GetCustomEntityServiceProxy
Retrieves a CustomEntityService proxy object.
📄️ GetEventServiceProxy
Retrieves a S2S EventService proxy object.
📄️ GetGlobalProperty
This is basically a shortcut method for retrieving a specified global property which is predefined on portal.
📄️ GetHttpClientServiceProxy
Retrieves a S2S HttpClientService proxy object.
📄️ GetLeaderboardServiceProxy
Retrieves a S2S LeaderboardService proxy object.
📄️ GetLogServiceProxy
Retrieves a S2S LogService proxy object.
📄️ GetPushNotificationServiceProxy
Retrieves a S2S PushNotification proxy object.
📄️ GetRedemptionCodeServiceProxy
Retrieves a Redemption Code Service proxy object.
📄️ GetScriptServiceProxy
Retrieves a S2S ScriptService proxy object.
📄️ GetSessionForCredential
Creates and returns a session for the credentials provided.
📄️ GetSessionForProfile
Creates and returns a session for the profileId provided.
📄️ IsClientBridge
This returns true if the script context is client.
📄️ IsPeerBridge
This returns true if the script context is peer.
📄️ IsServerBridge
This returns true if the script context is server.