Resource information
URL | https://api.softnetsportstatscore.com/v2/booked-events/create |
---|---|
XSD | |
Method | POST |
Description | Returns a single event with details including participants, partial results, stats, lineups and important incidents for the event |
Package | This resource is included in the SCOUTSFEED , LIVESCORE and SCOREFRAME packages |
Cache | 15 secondsCreates reservations for event for user from token and product. |
Authorization required | Yes |
Parameters
Name | Data type | Description |
---|---|---|
event_id | xsd:int | REQUIRED. The requested event identifier |
product | xsd:string | REQUIRED. The requested product name identifier
|
token | xsd:string | REQUIRED. More information concerning oAuth token: oAuth 2.0 authorizationauthorization in API introduction section |
Output elements
.data | |
---|---|
message | Response info message. |
status | Response code. |
Response Code
...
Code
...
Possible output messages
Status | Message | Note |
---|---|---|
200 | Successfully reserved event | |
400 | You can order/refuse only events with the status Not started | |
400 | Booking already Exist | |
400 | The selected product is invalid. | When requested product is not valid |
403 | Invalid credentials. Either the username, password or token you provided is incorrect | |
404 | The requested resource was not found | When requested event does not exist |
Sample curl call
Request | Parameters |
---|---|
curl -XPOST 'https://api. |
statscore.com/v2/booked-events |
?token= |
{token}&event_id= |
{event_ |
id}&product= |
{product}' |
YOUR_TOKEN
EVENT_ID
token, event_id, product |