Tournament
The tournament element provides information about the email tournament and contains 2 sub-elements which are:
sport
category
Here follows an example of the tournament element shown in the fixture end point.
<tournament id="sr:tournament:132" name="NBA">
<sport id="sr:sport:2" name="Basketball"/>
<category id="sr:category:15" name="USA" country_code="USA"/>
</tournament>
List of attributes in the tournament element:
id
Unique id of the competition the fixture belongs in
String value, example:
id="sr:tournament:132"
name
Name of the tournament (main competition) the fixture belongs in
String value, example:
name="NBA"
List of attributes in the sport sub-element:
id
Unique id of the sport of the fixture
String value, example:
id="sr:sport:2"
name
Name of the sport
String value, example:
name="Basketball
List of attributes in the category sub-element:
id
Unique id of the category. The category addresses the country where the tournament is taking place
String value, example:
id="sr:category:19"
name
Name of the category
String value, example:
name="USA"
country_code
Code of the country for the category
String value, example:
country_code="USA"
Was this helpful?