Versions Compared

Key

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

Resource information

URLhttps://api.
softnetsport
statscore.com/v2/booked-events/
createXSD PackageThis resource is included in the SCOUTSFEED, LIVESCORE and STATISTICS packagesCache15 seconds
MethodPOST

Description

Returns a single event with details including participants, partial results, stats, lineups and important incidents for the event
Creates reservations for event for user from token and product.
Authorization requiredYes

...

Parameters

Name

Data type

Description

event_id

xsd:int

REQUIRED. The requested event identifier

product

xsd:string

REQUIRED. The requested product name identifier

  • scoutsfeed - Scoutsfeed product

  • livescorepro - Livescorepro product

token

xsd:string

REQUIRED. More information concerning

oAuth token: oAuth 2.0 authorization

 

Method calling examples

Link
Description
https://api.softnetsport.com/v2/events/6367.xml?token={{YOUR_TOKEN}}Returns detailed data for the selected event in XML format

authorization in API introduction section

Output elements

.data

messageResponse info message.
statusResponse code.

Possible output messages

StatusMessageNote
200Successfully reserved event
400You can order/refuse only events with the status Not started
400Booking already Exist
400The selected product is invalid.When requested product is not valid
403Invalid credentials. Either the username, password or token you provided is incorrect
404The requested resource was not foundWhen requested event does not exist

Sample curl call

Request
 Parameters
curl -XPOST 'https://api.
softnetsport
statscore.com/v2/booked-events
/6367
?token={
{YOUR_TOKEN}}Returns detailed data for the selected event in JSON format

Output elements

.data
 statusUnique identifier for the competitionmessageName of the the competition e.g. U19 World Champ
token}&event_id={event_id}&product={product}'

token, event_id, product