Resource information
URL | https://api.softnetsport.com/v2/events/{eventId}/incidents |
---|---|
XSD | https://api.softnetsport.com/assets/API/docs/xsd/events.incidents.index.xsd |
Method | GET |
Description | Returns a list of incidents for the selected event. |
Cache | Not cached |
Authorization required | Yes |
Internal method | Yes |
Method parameters
Name | Type | Description |
---|---|---|
There are no method parameters in this resource |
Query parameters
Name | Type | Description |
---|---|---|
statuses | xsd:string | Determines incidents status identifiers, separated by a comma (e.g. 123,234,321) |
incidents | xsd:string | Determines incidents identifiers, separated by a comma (e.g. 123,234,321) |
important | xsd:string | Determines only important or not important incidents. Possible values: yes, no. |
updated | xsd:string | Determines only updated or not updated incidents. Possible values: yes, no. |
deleted | xsd:string | Determines to list only deleted or not deleted incidents. Possible values: yes, no. |
page | xsd:int | Determines offset of paginated data. Default value is 1 which means first page |
limit | xsd:int | Determines maximum number of returned records on page. Used in paginated data. Default value is 500. Possible values: 5, 10, 25, 50, 100, 250, 500 |
Method calling examples
Link | Description |
---|---|
https://api.softnetsport.com/v2/events/1877031/incidents?username=softnetsport&incidents=410,413&limit=5 | Returns a list of event incidents. |
Output elements
.event_incidents |
---|
Data type | Description |
---|---|
..incident |
Identifier for the event incident. Unique for sport.
Incident action type.
Possible values:
- insert
- update
- delete
Incident participant name.
Incident participant team id.
Incident event time.
...
event_id | xsd:int | REQUIRED. The requested event identifier |
token | xsd:string | REQUIRED. More information concerning authorization in API introduction section |
incident | xsd:array | REQUIRED. Array with incident parameters |
incident[incident_id] | xsd:int | REQUIRED. Incident id in data.sports.incidents node for event from resourcesports.show |
incident[participant_id] | xsd:int | Participant id |
incident[participant_team_id] | xsd:int | Participant team id |
incident[participant_name] | xsd:string | Participant name. |
incident[status_id] | xsd:int | Status id in data.sports.statuses node for event from resource sports.show |
incident[minute] | xsd:int | Incident time minute |
incident[second] | xsd:int | Incident time second |
incident[home_score] | xsd:int | Home Score |
incident[away_score] | xsd:int | Away Score |
incident[home_score1] | xsd:int | Home Score 1 |
incident[away_score1] | xsd:int | Away Score 1 |
incident[home_score2] | xsd:int | Home Score 2 |
incident[away_score2] | xsd:int | Away Score 2 |
incident[add_data] | xsd:string | Custom information |
incident[display_info] | xsd:string | Label for incidents |
incident[old_added_id] | xsd:int | DEPRECATED. Old Id |
// TODO : DOKOŃCZYĆ