| GET | /qry/recentSuperWinWinners |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class BettingApp:
name: Optional[str] = None
version: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Ref:
id: Optional[str] = None
val: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class RefEx(Ref):
data: Optional[RecordDictionary[str, str]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Origin:
application: Optional[BettingApp] = None
ip: Optional[str] = None
organization: Optional[RefEx] = None
region: Optional[Ref] = None
location_group: Optional[Ref] = None
location: Optional[RefEx] = None
device: Optional[RefEx] = None
clerk: Optional[Ref] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class SuperWinWinner:
is_drawn: bool = False
drawn_at_utc: datetime.datetime = datetime.datetime(1, 1, 1)
round_id: Optional[str] = None
bet_id: Optional[str] = None
slip_id: Optional[str] = None
origin: Optional[Origin] = None
bettor: Optional[Ref] = None
code: Optional[str] = None
amount: Decimal = decimal.Decimal(0)
location_address_or_bettor_info: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class RecentSuperWinWinners:
id: Optional[str] = None
recent_winners: Optional[List[SuperWinWinner]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetRecentSuperWinWinners:
pass
TKey = TypeVar('TKey')
TVal = TypeVar('TVal')
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class RecordDictionary(Generic[TKey, TVal], Dict[TKey,TVal]):
pass
Python GetRecentSuperWinWinners DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /qry/recentSuperWinWinners HTTP/1.1 Host: s4w2.api.bettor.cc Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":"RecentSuperWinWinners-1","recentWinners":[]}