| All Verbs | /qry/feed/hb |
|---|
const std = @import("std");
pub const Stages = enum(i32) {
None = 0,
Countdown = 1,
Processing = 2,
Draw = 3,
Results = 4,
};
pub const Progress = struct {
step: i32 = 0,
steps: i32 = 0,
pct: f32 = 0,
};
pub const FeedHeartbeat = struct {
roundId: ?[]const u8 = null,
stage: ?Stages = null,
step: i32 = 0,
steps: i32 = 0,
utcTimestamp: ?[]const u8 = null,
lockdownStepFromEnd: i32 = 0,
overall: ?Progress = null,
isHappyHour: bool = false,
};
pub const GetFeedHeartbeat = struct {};
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/feed/hb HTTP/1.1
Host: s4w1.api.bettor.webhop.biz
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"roundId":"String","stage":0,"step":0,"steps":0,"utcTimestamp":"0001-01-01T00:00:00.0000000Z","lockdownStepFromEnd":0,"overall":{"step":0,"steps":0,"pct":0},"isHappyHour":false}