-
Notifications
You must be signed in to change notification settings - Fork 9
6. Matches
Kyle edited this page Feb 3, 2017
·
2 revisions
$matches = $challonge->getMatches('teamreflex-bracket1');
Returns Reflex\Challonge\Models\Match
instances for the given tournament.
$match = $challonge->getMatches('teamreflex-bracket1', 'matchId');
Returns a Reflex\Challonge\Models\Match
instance for the given tournament and match ID.
$params = [
'match[scores_csv]' => "3-1",
'match[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.