Hi everyone,
I have never worked with this kind of API before, and could need some help. I have the following information regarding the Rest API access:
"
Authentication will be completed through the use of access tokens. Users will be provided a Client ID and a Client Secret to access data.
We will provide users with two reference clients, one to connect to the rest API and one to connect to the websocket. The user will have to enter their client ID and secret in the reference client and the code will handle getting the access token. The reference clients also handle putting the access token in the Authorization header for the request.
Client ID = 123
Client Secret = abc
Hostnames:
Rest API - https://api.secondspectrum.com
WebSocket - wss://live-v2.secondspectrum.com
Let's say I want this endpoint:
Schedule - Get a list of games for a competition
GET /schedule/ssi?competitionId={SecondSpectrumLeagueId}&season={year}
They have this example in their documentation:
curl
‘${HOST}/schedule/ssi?competitionId=123?sea
son=2023’
I dont know where to start - how do I authenticate and get an access token?