Skip to main content
Version: 5.7.0

GetTeamInfo

Retrieves the team info for the current assocaited session as a JSON.

tip

For the Peer bridge call, the getTeamInfo() call will return the team info for the app id associated with the server session. The getClientTeamInfo() call will return the team info for the app id associated with the client session IF the client session exists. If it doesn’t exist, the team info for the app id associated with the server session.
For the standard bridge call, both versions return the team info for the app id associated with the player’s session.
For the S2S bridge call, both versions return the team info for the app id associated with the server session.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"teamName": "deployteam",
"teamId": "b35d984b-7c88-4a00-a632-49c207053dab"
}