ElementalInference / Client / get_fixture
get_fixture¶
- ElementalInference.Client.get_fixture(**kwargs)¶
Retrieves information about the specified fixture (a sports event, such as a specific basketball game). You obtain a fixtureId from SearchFixtures, or from the clipping output of a feed.
See also: AWS API Documentation
Request Syntax
response = client.get_fixture( fixtureId='string' )
- Parameters:
fixtureId (string) –
[REQUIRED]
The ID of the fixture to retrieve, as returned by SearchFixtures.
- Return type:
dict
- Returns:
Response Syntax
{ 'fixtureId': 'string', 'name': 'string', 'fixtureGroup': 'string', 'scheduledStart': datetime(2015, 1, 1), 'status': 'string', 'competitors': [ { 'name': 'string', 'isHome': True|False }, ] }
Response Structure
(dict) –
fixtureId (string) –
The ID that you specified in the request.
name (string) –
The name of the fixture, as provided by the data source. For example, the names of the two competing teams.
fixtureGroup (string) –
The group that the fixture belongs to, such as the competition, league, or tournament. The data source doesn’t provide this information for every fixture.
scheduledStart (datetime) –
The scheduled start time of the fixture, as provided by the data source. The actual start time might differ.
status (string) –
The status of the fixture in its lifecycle, as provided by the data source. For example, Scheduled or Completed.
competitors (list) –
An array of the competitors (the teams or individuals) in the fixture.
(dict) –
Contains information about one competitor in a fixture. It is used in the FixtureSummary that is in the SearchFixtures response.
name (string) –
The name of the competitor, as provided by the data source.
isHome (boolean) –
Specifies whether this competitor is the home side in the fixture. If true, this competitor is the home side. If false, this competitor is the away side.
Exceptions
ElementalInference.Client.exceptions.ResourceNotFoundExceptionElementalInference.Client.exceptions.InternalServerErrorExceptionElementalInference.Client.exceptions.ServiceUnavailableExceptionElementalInference.Client.exceptions.TooManyRequestExceptionElementalInference.Client.exceptions.GatewayTimedOutException