TBS Apps API

<back to all web services

PopularMarketCategoryLinksRequest

The following routes are available for this service:
GET,POST/PopularMarketCategoryLinksGets Popular Market Category Links.Gets Popular Market Category Links. These are used as top-level sports league events to fetch child markets. Popular markets are set up through EventAdmin
PopularMarketCategoryLinksResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<PopularMarketCategoryLinksResponseItem>No
PopularMarketCategoryLinksResponseItem Parameters:
NameParameterData TypeRequiredDescription
EventTypeIdformintNo
EventTypeIcoformstringNo
CategoriesformList<PopularMarketCategoryLinksResponseCategory>No
PopularMarketCategoryLinksResponseCategory Parameters:
NameParameterData TypeRequiredDescription
CategoryIdformintNo
CategoryNameformstringNo
MasterEventsformList<PopularMarketCategoryLink>No
PopularMarketCategoryLink Parameters:
NameParameterData TypeRequiredDescription
EventTypeIdformintNo
MasterCategoryIdformintNo
CategoryIdformintNo
MasterEventIdformintNo
MasterEventNameformstringNo
CategoryNameformstringNo
EventCountformintNo
EventTypeformstringNo
MasterCategoryNameformstringNo
IsSgmEnabledformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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

POST /PopularMarketCategoryLinks HTTP/1.1 
Host: ios-api.betright.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PopularMarketCategoryLinksRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PopularMarketCategoryLinksResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions">
  <Items>
    <PopularMarketCategoryLinksResponseItem>
      <Categories>
        <PopularMarketCategoryLinksResponseCategory>
          <CategoryId>0</CategoryId>
          <CategoryName>String</CategoryName>
          <MasterEvents xmlns:d6p1="http://schemas.datacontract.org/2004/07/TBS.Frontend.Messaging.DataContracts">
            <d6p1:PopularMarketCategoryLink>
              <d6p1:CategoryId>0</d6p1:CategoryId>
              <d6p1:CategoryName>String</d6p1:CategoryName>
              <d6p1:EventCount>0</d6p1:EventCount>
              <d6p1:EventType>String</d6p1:EventType>
              <d6p1:EventTypeId>0</d6p1:EventTypeId>
              <d6p1:IsSgmEnabled>false</d6p1:IsSgmEnabled>
              <d6p1:MasterCategoryId>0</d6p1:MasterCategoryId>
              <d6p1:MasterCategoryName>String</d6p1:MasterCategoryName>
              <d6p1:MasterEventId>0</d6p1:MasterEventId>
              <d6p1:MasterEventName>String</d6p1:MasterEventName>
            </d6p1:PopularMarketCategoryLink>
          </MasterEvents>
        </PopularMarketCategoryLinksResponseCategory>
      </Categories>
      <EventTypeIco>String</EventTypeIco>
      <EventTypeId>0</EventTypeId>
    </PopularMarketCategoryLinksResponseItem>
  </Items>
</PopularMarketCategoryLinksResponse>