Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Resource information

URLhttps://api.softnetsport.com/v2/events/{eventId}/incidents
XSDhttps://api.softnetsport.com/assets/API/docs/xsd/events.incidents.index.xsd
MethodGET

Description

Returns a list of incidents for the selected event.

CacheNot cached
Authorization requiredYes
Internal methodYes

Method parameters

NameTypeDescription
There are no method parameters in this resource 

Query parameters

NameTypeDescription
statusesxsd:stringDetermines incidents status identifiers, separated by a comma (e.g. 123,234,321) 
incidentsxsd:stringDetermines incidents identifiers, separated by a comma (e.g. 123,234,321)
importantxsd:string

Determines only important or not important incidents.

Possible values: yes, no.

updatedxsd:string

Determines only updated or not updated incidents.

Possible values: yes, no.

deletedxsd:string

Determines to list only deleted or not deleted incidents.

Possible values: yes, no.

pagexsd:intDetermines offset of paginated data. Default value is 1 which means first page
limitxsd: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

Output elements

.event_incidents
 
Data type
Description
..incident 
id
 

Identifier for the event incident. Unique for sport.

action

Incident action type.

Possible values:

  • insert
  • update
  • delete
incident_idIncident identifier.participant_idIncident participant id.participant_name

Incident participant name.

participant_team_id

Incident participant team id.

status_idIncident status id.event_time

Incident event time.

add_dataCustom informations.display_infoCustom informations.created_atUnique identifier for the competitionupdated_at 

...

event_idxsd:intREQUIRED. The requested event identifier
tokenxsd:stringREQUIRED. More information concerning authorization in API introduction section
incidentxsd:arrayREQUIRED. Array with incident parameters
incident[incident_id]xsd:intREQUIRED. Incident id in data.sports.incidents node for event from resourcesports.show
incident[participant_id]xsd:intParticipant id
incident[participant_team_id]xsd:intParticipant team id
incident[participant_name]xsd:stringParticipant name.
incident[status_id]xsd:intStatus id in data.sports.statuses node for event from resource sports.show
incident[minute]xsd:intIncident time minute
incident[second]xsd:intIncident time second
incident[home_score]xsd:intHome Score
incident[away_score]xsd:intAway Score
incident[home_score1]xsd:intHome Score 1
incident[away_score1]xsd:intAway Score 1
incident[home_score2]xsd:intHome Score 2
incident[away_score2]xsd:intAway Score 2
incident[add_data]xsd:stringCustom information
incident[display_info]xsd:stringLabel for incidents
incident[old_added_id]xsd:intDEPRECATED. Old Id

// TODO : DOKOŃCZYĆ