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
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var teamInfo = bridge.getTeamInfo();
var teamInfo = bridge.getTeamInfo();
JSON Response
{
"teamName": "deployteam",
"teamId": "b35d984b-7c88-4a00-a632-49c207053dab"
}