Resource information
...
Name | Data type | Description |
---|---|---|
event_id | xsd:int | REQUIRED. The requested event identifier |
token | xsd:string | REQUIRED. More information concerning authorization in API introduction section |
POST parameters
Name | Data type | Description |
---|---|---|
.stats | ||
.{object_id} | xsd:int | REQUIRED. The identifier for object e.g participant(team)/lineup(person) |
type | xsd:string | REQUIRED. Type of object e.g team/person |
participant_id | xsd:int | The identifier for participant or null |
participant_team_id | xsd:int | The identifier for participant team or null |
..stats | ||
..{stats_id} | xsd:int | REQUIRED. The identifier for stats |
value | xsd:string | REQUIRED. The value of stats |
Output elements
If fail:
.data | |
---|---|
message | Response info message. |
status | Response code. |
If success:
.data | |
---|---|
..stats | All participant or lineups for event |
id | The identifier for object e.g participant(team)/lineup(person) |
type | Type of object e.g team/person |
...stats | List of stats |
id | Stats/resault identifier |
column_name | Name of column in database or input element |
value | Stats value |
Sample curl call
Request | Parameters |
---|---|
"https://api.softnetsport.com/v2/events/{event_id}/stats?token={token}" | token, event_id |