This example demonstrates of how to start listening for a Genius Sports Match State feed using Ably.
It covers the following parts:
- Getting an access token for Match State Platform API
- Reading fixtures schedule from Match State Platform API
- Retrieving Ably channel name and access token from Match State Platform API
- Subscribing for a live Match State feed using Ably's Client
To be able to run this code you will need to get he following secrets from Genius Sports support team ([email protected]):
- Client ID
- Client Secret
- API Key
To make this code production ready you will need to add error logging as a minimum which was omitted to keep the code simple and more readable.