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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
			}
		]
	}
}