-
Notifications
You must be signed in to change notification settings - Fork 9
6. Matches
Kyle edited this page Aug 4, 2022
·
2 revisions
$matches = $challonge->getMatches('teamreflex-bracket1');
Returns Reflex\Challonge\DTO\MatchDto
instances for the given tournament.
$match = $challonge->getMatches('teamreflex-bracket1', 'matchId');
Returns a Reflex\Challonge\DTO\MatchDto
instance for the given tournament and match ID.
$params = [
'scores_csv' => "3-1",
'winner_id' => $participant->id,
];
$match->update($params);
You can see all available params here: http://api.challonge.com/v1/documents/matches/create
Updates the match attributes.