Skip to content

6. Matches

Kyle edited this page Feb 3, 2017 · 2 revisions

Get Matches

$matches = $challonge->getMatches('teamreflex-bracket1');

Returns Reflex\Challonge\Models\Match instances for the given tournament.

Get Match

$match = $challonge->getMatches('teamreflex-bracket1', 'matchId');

Returns a Reflex\Challonge\Models\Match instance for the given tournament and match ID.

Update Match

$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.

Clone this wiki locally