Objects
BOS Objects
The following objects are used to pass data to, or objects from response messages, the five API endpoints:
create
Parameters for new BOS incident message to create a game and add to Couch Potato database.
Parameter | Description | Type | Required |
| Sport name | String | Yes |
| League (Event Group) of sport | String | Yes |
| Home team name | String | Yes |
| Away team name | String | Yes |
| Start date/time of game | Date | Yes |
| Current user id | Number | Yes |
in_progress
Parameters for new BOS incident message to start a game and add to Couch Potato database.
Parameter | Description | Type | Required |
| Sport name | String | Yes |
| League (Event Group) of sport | String | Yes |
| Home team name | String | Yes |
| Away team name | String | Yes |
| Start date/time of game | Date | Yes |
| Actual time the game started | Date | Yes |
| Unique match identifier | Number | Yes |
result
Parameters for new BOS incident message to set the score of a game and add to Couch Potato database.
Parameter | Description | Type | Required |
| Sport name | String | Yes |
| League (Event Group) of sport | String | Yes |
| Home team name | String | Yes |
| Away team name | String | Yes |
| Start date/time of game | Date | Yes |
| The score for the home team | Number | Yes |
| The score for the away team | Number | Yes |
| Unique match identifier | Number | Yes |
finish
Parameters for new BOS incident message to finish/complete a game and add to Couch Potato database.
Parameter | Description | Type | Required |
| Sport name | String | Yes |
| League (Event Group) of sport | String | Yes |
| Home team name | String | Yes |
| Away team name | String | Yes |
| Start date/time of game | Date | Yes |
| The time the game ended | Date | Yes |
| The score for the away team | Number | Yes |
| Unique match identifier | Number | Yes |
canceled
Parameters for new BOS incident message to cancel a game and add to Couch Potato database.
Parameter | Description | Type | Required |
| Sport name | String | Yes |
| League (Event Group) of sport | String | Yes |
| Home team name | String | Yes |
| Away team name | String | Yes |
| Start date/time of game | Date | Yes |
| Unique match identifier | Number | Yes |
Success Response Objects
Add Game Success Response
Object attributes for a 200 response from an add_game call.
Name | Text |
status | Always 200 |
title | Game added |
message | [home ] v [away ] - [start_time] |
Start Game Success Response
Object attributes for a 200 response from an start_game call.
Name | Text |
status | Always 200 |
title | Game started |
message | [home ] v [away ] - [whistle_start_time] |
Add Score Success Response
Object attributes for a 200 response from an add_score call.
Name | Text |
status | Always 200 |
title | Scores added |
message | [home ] [home_score]v [away ][away_score] |
Finish Game Success Response
Object attributes for a 200 response from an finish_game call.
Name | Text |
status | Always 200 |
title | Game finished |
message | [home ] v [away ] - [whistle_end_time] |
Cancel Game Success Response
Object attributes for a 200 response from an cancel_game call.
Name | Text |
status | Always 200 |
title | Game canceled |
message | [home ] v [away ] |
Last updated