Betting.WebApi

<back to all web services

GetLocationFeed

The following routes are available for this service:
All Verbs/feed/locations
GetLocationFeed Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNo
LocationFeed Parameters:
NameParameterData TypeRequiredDescription
ExistsformboolNo
IdformstringNo
LCPInfoformLocalCodePotInfoNo
LocalCodePotInfo Parameters:
NameParameterData TypeRequiredDescription
IsActiveformboolNo
CurrentformCurrentRoundInfoNo
WinnersformList<Winner>No
CurrentRoundInfo Parameters:
NameParameterData TypeRequiredDescription
RoundIdformstringNo
AmountformdecimalNo
InertCodeformstringNo
Winner Parameters:
NameParameterData TypeRequiredDescription
RoundIdformstringNo
SlipIdformstringNo
BetIdformstringNo
CodeformstringNo
AmountformdecimalNo

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /feed/locations HTTP/1.1 
Host: s4wapi.mozzart.ath.cx 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"exists":false,"id":"String","lcpInfo":{"isActive":false,"current":{"roundId":"String","amount":0,"inertCode":"String"},"winners":[{"roundId":"String","slipId":"String","betId":"String","code":"String","amount":0}]}}