Skip to main content
Version: 5.7.0

JoinTournament

Join the specified tournament. Any entry fees will be automatically collected.

ServiceOperation
tournamentJOIN_TOURNAMENT

Method Parameters

ParameterDescription
leaderboardIdThe leaderboard for the tournament
tournamentCodeTournament to join
initialScoreInitial score for the user

Usage

http://localhost:3000
string leaderboardId = "leaderboardId1";
string tournamentCode = "exampleTournamentCode1";
int initialScore = 0;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.TournamentService.JoinTournament(leaderboardId, tournamentCode, initialScore, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"balance": {
"currency": {
"test": {
"purchased": 0,
"balance": 0,
"consumed": 0,
"awarded": 0
},
"credits": {
"purchased": 0,
"balance": 2434,
"consumed": 0,
"awarded": 2434
}
}
},
"enrolled": true,
"entryFee": {}
}
}