GetAnnouncement - Saba-sports/OddsDirectAPI GitHub Wiki
This API is to get the public message by time frame.
Request
GET
URI: /sports/{version}/GetAnnouncement?start=2021-02-01&end=2021-02-05&stickOption=0&language=en
Content-Type: application/json
Accept-Encoding: br, gzip, deflate
X-Forwarded-For: client ip (If using API via proxy)
Authorization: Bearer {JWT token}
Parameter |
Format |
Mandatory |
Description |
start |
Datetime |
Yes |
Specifies the date from when.The date time string format should be like: "2021-01-01T00:00:00", encodable |
end |
Datetime |
Yes |
Specifies the date end to when.The date is up to 7 days.The date time string format should be like: "2021-01-01T00:00:00", encodable |
stickOption |
int |
-- |
Specifies which announcements to display. 0 : display all (default)1 : top special announcements 2 : normal announcements |
language |
string |
-- |
Specifies the language.The default language is EN (English). |
Response
[
{
"messageId": int,
"postTime": DateTime,
"isSticky": bool,
"message": string
}
]
Parameter |
Format |
Description |
messageId |
int |
Specifies the unique id for the message. |
postTime |
DateTime |
Specifies the time of the message been posted. |
isSticky |
bool |
Specifies whether the announcement is sticky. |
message |
string |
Specifies the message content. |