GetPromotionsOld - Saba-sports/OddsDirectAPI GitHub Wiki
This API is to get promotion events.
Request
GET /sports/{version}/GetPromotions?OddsType=1&Language=cs
Accept: application/json
Authorization: Bearer {JWT token}
Parameter |
Description |
OddsType |
Specifies the type of the odds. 1 : Malay Odds ; 2 : Hong Kong Odds ; 3 : Decimal Odds ; 4 : Indo Odds ; 5 : American Odds |
Language |
Specific the language of the response context |
Response
{
"events": Event[],
"markets": Market[]
}
Parameter |
Format |
Description |
events |
Event array |
Specifies the information of events. |
markets |
Market array |
Specifies the information of markets. |
Event
{
"sportType": int,
"sportName": string,
"eventId": int,
"leagueId": int,
"leagueName": string,
"globalShowTime": DateTime,
"isLive": false,
"inPlayTime": string,
"homeId": int,
"homeName": string,
"homeIconUrl": string,
"liveHomeScore": int,
"awayId": int,
"awayName": string,
"awayIconUrl": string,
"liveAwayScore": int
}
Name |
Format |
Description |
sportType |
int |
Specifies the identifier of the sport. |
sportName |
string |
Specifies the name of the sport. |
eventId |
int |
Specifies the identifier of the event. |
leagueId |
int |
Specifies the identifier of the league. |
leagueName |
string |
Specifies the name of the league. |
globalShowTime |
DateTime |
Specifies the start time for the event. (time zone GMT+0) |
isLive |
bool |
Specifies weather the event is live. |
homeId |
int |
Specifies the identifier of the home team. |
homeName |
string |
Specifies the name of the home team. |
homeIconUrl |
string |
Specifies the URL of the home team image. |
liveHomeScore |
int |
Specifies the current score of home team. |
awayId |
int |
Specifies the identifier of the away team. |
awayName |
string |
Specifies the name of the away team. |
awayIconUrl |
string |
Specifies the URL of the away team image. |
liveAwayScore |
int |
Specifies the current score of away team. |
Markets
{
"eventId": int,
"marketId": int,
"betType": int,
"betTypeName": string,
"selections": SelectionInfo[]
}
Name |
Format |
Description |
eventId |
int |
Specifies the identifier of the event. |
marketId |
int |
Specifies the identifier of the market. |
betType |
int |
Specifies the type of the betting. |
betTypeName |
string |
Specifies the name of the betting. |
selections |
SelectionInfo[] |
Specifies the information of bet choices. |
SelectionInfo
{
"key": string,
"keyName": string,
"point": decimal,
"point2": decimal?,
"price": decimal
}
Name |
Format |
Description |
key |
string |
Specifies Bet type selections key. |
keyName |
string |
Specifies the name of the selections key. |
point |
decimal |
Specifies the point spread. |
point2 |
decimal? |
Specifies the point spread 2. Only for bet type=646; point=HDP, point2=OU |
price |
decimal |
Specifies the information of odds. |