Six4Win.WebApi

<back to all web services

GetLocationFeed

The following routes are available for this service:
All Verbs/qry/feed/locations
GetLocationFeed Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNo
LocationFeed Parameters:
NameParameterData TypeRequiredDescription
ExistsformboolNo
IdformstringNo
LCPInfoformLocalCodePotInfoNo
LocalCodePotInfo Parameters:
NameParameterData TypeRequiredDescription
IsActiveformboolNo
CurrentformCurrentRoundInfoNo
WinnersformList<WinnerByCode>No
CurrentRoundInfo Parameters:
NameParameterData TypeRequiredDescription
RoundIdformstringNo
AmountformdecimalNo
InertCodeformstringNo
WinnerByCode Parameters:
NameParameterData TypeRequiredDescription
RoundIdformstringNo
DrawnAtUtcformDateTimeNo
SlipIdformstringNo
BetIdformstringNo
CodeformstringNo
AmountformdecimalNo
OriginformOriginNo
BettorformRefNo
LocationAddressOrBettorInfoformstringNo
Origin Parameters:
NameParameterData TypeRequiredDescription
ApplicationformBettingAppNo
IPformstringNo
OrganizationformRefExNo
RegionformRefNo
LocationGroupformRefNo
LocationformRefExNo
DeviceformRefExNo
ClerkformRefNo
BettingApp Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
VersionformstringNo
RefEx Parameters:
NameParameterData TypeRequiredDescription
DataformRecordDictionary<string, string>Yes
Ref Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
ValformstringYes

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 /qry/feed/locations HTTP/1.1 
Host: s4w2.api.bettor.cc 
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,
				drawnAtUtc: 0001-01-01,
				slipId: String,
				betId: String,
				code: String,
				amount: 0,
				origin: 
				{
					application: 
					{
						name: String,
						version: String
					},
					ip: String,
					organization: 
					{
						data: 
						{
							String: String
						},
						id: String,
						val: String
					},
					region: 
					{
						id: String,
						val: String
					},
					locationGroup: 
					{
						id: String,
						val: String
					},
					location: 
					{
						data: 
						{
							String: String
						},
						id: String,
						val: String
					},
					device: 
					{
						data: 
						{
							String: String
						},
						id: String,
						val: String
					},
					clerk: 
					{
						id: String,
						val: String
					}
				},
				bettor: 
				{
					id: String,
					val: String
				},
				locationAddressOrBettorInfo: String
			}
		]
	}
}