To use the API interface you will need to create a TOKEN and integrate the TOKEN in the API request.
You can use HTTP GET requests or HTTP POST requests.
In the HTTP GET request you need to integrate the TOKEN in the GET request.
In the HTTP POST request you need to integrate the TOKEN in the HEADER.
A GET request is created with following LINK:
https://statsnscore.online/scoreboard/controltoken/token/action.
The token need to be replaced with the TOKEN.
The action need to be replaced with the ACTION.
A POST request is created with following LINK:
https://statsnscore.online/scoreboard/control/action.
The action need to be replaced with the ACTION.
The TOKEN need to be set in the HEADER as token.
There are also requests with data, where you provide additional data.
There LINK is similar to the action links, just additional data is added.
A GET request with data is created with following LINK:
https://statsnscore.online/scoreboard/controltoken/token/action/data.
The token need to be replaced with the TOKEN.
The action need to be replaced with the ACTION.
The data need to be replaced with the VALUE.
A POST request with data is created with following LINK:
https://statsnscore.online/scoreboard/control/action/data.
The TOKEN need to be set in the HEADER as token.
The action need to be replaced with the ACTION.
The data need to be replaced with the VALUE.
List of actions for the scoreboard:
quarterShow - toggle Show/Hide quarter
quarterHide - Hide quarter
quarterVisible - Show quarter
gameclockShow - toggle Show/Hide gameclock
gameclockHide - Hide gameclock
gameclockVisible - Show gameclock
playclockShow - toggle Show/Hide playclok
playclockHide - Hide playclok
playclockVisible - Show playclok
downShow - toggle Show/Hide down
downHide - Hide down
downVisible - Show down
distanceShow - toggle Show/Hide distance
distanceHide - Hide distance
distanceVisible - Show distance
recordShow - toggle Show/Hide record
recordHide - Hide record
recordVisible - Show record
losShow - toggle Show/Hide LOS(line of scrimmage)
losHide - Hide LOS(line of scrimmage)
losVisible - Show LOS(line of scrimmage)
firstDown - Set first down
yardsplus10 - Set distance +10 yards
yardsminus10 - Set distance -10 yards
yardsplus5 - Set distance +5 yards
yardsminus5 - Set distance -5 yards
yardsplus1 - Set distance +1 yards
yardsminus1 - Set distance -1 yards
reset12Clock - Set quarter length setup to 12 minutes
reset15Clock - Set quarter length setup to 15 minutes
reset30Clock - Set quarter length setup to 30 minutes
reset40Playclock - Set playclock setup to 40 seconds
reset30Playclock - Set playclock setup to 30 seconds
reset25Playclock - Set playclock setup to 25 seconds
plusMinute - Set game clock +1 minute
minusMinute - Set game clock -1 minute
plus10Second - Set game clock +10 seconds
minus10Second - Set game clock -10 seconds
plus1Second - Set game clock +1 second
minus1Second - Set game clock -1 second
minus1SecondPlayclock - Set actual playclock -1 second
resetClock - Reset game clock
resetPlayclock - Reset playclock
startClock - Start game clock
stopClock - Stop game clock
startPlayclock - Start playclock
stopPlayclock - Stop playclock
countTimeoutTeam1 - SHOW timeout and reduce timeouts from team1 (hometeam) by 1
countTimeoutTeam2 - SHOW timeout and reduce timeouts from team2 (guestteam) by 1
plusTimeoutTeam1 - Increase but don't show timeouts from team1 (hometeam) by 1
plusTimeoutTeam2 - Increase but don't show timeouts from team2 (guestteam) by 1
minusTimeoutTeam1 - Reduce but don't show timeouts from team1 (hometeam) by 1
minusTimeoutTeam2 - Reduce but don't show timeouts from team2 (guestteam) by 1
ballbesitzTeam1 - Set possession to team1 (hometeam)
ballbesitzTeam2 - Set possession to team2 (guestteam)
ballbesitzwechsel - Change possession
touchdownTeam1 - SHOW TOUCHDOWN and increase points from team1 (hometeam) by 6
touchdownTeam2 - SHOW TOUCHDOWN and increase points from team2 (guestteam) by 6
fieldgoalTeam1 - SHOW FIELDGOAL and increase points from team1 (hometeam) by 3
fieldgoalTeam2 - SHOW FIELDGOAL and increase points from team2 (guestteam) by 3
twopointTeam1 - SHOW 2POINT and increase points from team1 (hometeam) by 2
twopointTeam2 - SHOW 2POINT and increase points from team2 (guestteam) by 2
patTeam1 - SHOW PAT and increase points from team1 (hometeam) by 1
patTeam2 - SHOW PAT and increase points from team2 (guestteam) by 1
safetyTeam1 - SHOW SAFETY and increase points from team1 (hometeam) by 2
safetyTeam2 - SHOW SAFETY and increase points from team2 (guestteam) by 2
plusTeam1 - Increase but don't show points from team1 (hometeam) by 1
plusTeam2 - Increase but don't show points from team2 (guestteam) by 1
minusTeam1 - Reduce but don't show points from team1 (hometeam) by 1
minusTeam2 - Reduce but don't show points from team2 (guestteam) by 1
countDowns - Increase DOWN by 1
countquarter - Increase QUARTER by 1
flag - SHOW FLAG
los10 - Set LOS to 10 yards
los20 - Set LOS to 20 yards
los30 - Set LOS to 30 yards
los40 - Set LOS to 40 yards
losplus10 - Set LOS +10 yards
losminus10 - Set LOS -10 yards
losplus5 - Set LOS +5 yards
losminus5 - Set LOS -5 yards
losplus1 - Set LOS +1 yard
losminus1 - Set LOS -1 yard
losteam1 - Set LOS in field side of team1 (hometeam)
losteam2 - Set LOS in field side of team2 (guestteam)
losteamchange - Set field side of LOS from one team to the other
flag30 - Show Flag for 30 seconds
hideflag - Hide Flag
setquarterPRE - Set the quarter to PRE
setquarter1st - Set the quarter to 1st
setquarter2nd - Set the quarter to 2nd
setquarterHT - Set the quarter to HT
setquarter3rd - Set the quarter to 3rd
setquarter4th - Set the quarter to 4th
setquarterOT - Set the quarter to OT
setquarterFIN - Set the quarter to FIN
setDowns1 - Set Down to 1st
setDowns2 - Set Down to 2nd
setDowns3 - Set Down to 3rd
setDowns4 - Set Down to 4th
set12ClockAndReset - Show Gameclock to 12:00 and reset Gameclock
set15ClockAndReset - Show Gameclock to 15:00 and reset Gameclock
set30ClockAndReset - Show Gameclock to 30:00 and reset Gameclock
set40PlayclockAndReset - Show Playclock to 40 seconds and reset Playclock
set30PlayclockAndReset - Show Playclock to 30 seconds and reset Playclock
set25PlayclockAndReset - Show Playclock to 25 seconds and reset Playclock
Actions with data
setData_quarter - Set the quarter - value can be - PRE, 1st, 2nd, HT, 3rd, 4th, OT, FIN
setData_gameclock - Set the gameclock - value is a number in seconds - between 0 and 3600
setData_playclock - Set the playclock - value is a number in seconds - between 0 and 40
setData_down - Set the down - value can be - 1st, 2nd, 3rd, 4th
setData_distance - Set the distance in yards - value is a number - between 0 and 99
setData_homepoints - Set the points for the home team - value is a number - between 0 and 999
setData_guestpoints - Set the points for the guest team - value is a number - between 0 and 999
setData_hometimeouts - Set the timeouts for the home team - value is a number - between 0 and 3
setData_guesttimeouts - Set the timeouts for the guest team - value is a number - between 0 and 3
setData_los - Set the LOS yards - value is a number - between 0 and 50
setData_losteam - Set the LOS field side - value is the team and can be - home, guest
setData_ballteam - Set the possession of the ball - value is the team and can be - home, guest