Booking Events (ScoutsFeed) - "Why am I not receiving messages in scoutsfeed push"?
You can find yourself in the situation when you connect to the AMQP queue prepared for your integration, channel is open and you receive no messages. Please be aware, that if you want to receive any messages in ScoutsFeed product you need to book the event in the first place.
There are 3 different ways of booking the event: Booking via events list view, Autobooking and Booking events via API. We will briefly describe all of these 3 ways to you.
1. Booking via events list view.
The events list is a list of all games which can be booked in ScoutsFeed. To find list of events please log into our backoffice with credentials form welcoming message. Click the “ScoutsFeed” tab and here we are:
It is possible to choose a period of a maximum of 31 days. The search button will filter all offered games for the selected period of time. Feel free to pick the sport, country, competition, and coverage you want.
To book the event you need to click the green basket icon on the right side of the event details.
2. Autobooking.
Autobooking feature allows you to choose the competition you want to follow and skip single event booking from the backoffice view or API. It is accessible from the left-side menu and allows you to book events automatically. This feature helps you book events faster and saves you time as this can be done with a single click. You can choose the names of the competitions in which you are interested. Selecting checkboxes allows you to buy all matches from selected competitions with one confirmation.
Please note that manual unbooking of an event that belongs to an auto booked competition will result in a need to book this game manually in case of date or type coverage change. The event will not be re-booked automatically.
3. Booking events via API.
With several API endpoints you are able to find a event, book or unbook it and check the currently booked matches for a selected period of time.
- Selection of the event: events.index
To check the Scoutsfeed match offer, please use endpoint events.index with your unique token:
https://api.statscore.com/v2/events?scoutsfeed=yes&events_details=no&competitions_details=yes&token=YOUR_TOKEN
- Booking of the event: booked-events.create
Choose the event you are interested in and use its ID in the proper place in the query.
https://api.statscore.com/v2/booked-events?token=YOUR_TOKEN&product=scoutsfeed&event_id=EVENTID&client_id=YOUR_CLIENT_ID
- Unbooking of the event: booked-events.delete
To unbook a match, use the DELETE method for the booked-events.delete endpoint (with your unique token) which contains the event_id of the event to be unbookedhttps://api.statscore.com/v2/booked-events/EVENTID?token=YOUR_TOKEN&product=scoutsfeed&client_id=YOUR_CLIENT_ID
- Returning of the events booked by the client: booked-events
To return the list of booked events, use the GET method for the booked-events endpoint with your unique token
https://api.statscore.com/v2/booked-events?client_id=YOUR_CLIENT_ID&token=YOUR_TOKEN&product=scoutsfeed
Full documentation how to book the event in scoutsfeed can be found here: Booking the events