4.7. GetMarketCount
This retrieves the number of matches per market per sports
Request
Method | URL |
---|---|
GET | /AsianOddsService/GetMarketCount?sportsType={SportsType}&marketTypeId={marketTypeId} |
Type | Params | Values |
---|---|---|
HEAD | AOToken | string |
HEAD | Accept | application/json |
GET | sportsType | Int |
GET | marketTypeId | Int |
Â
Request Values
Value | What is this for |
---|---|
AOToken | Token generated also by the Login method. This token identifies which user is requesting or executing the API Method.This has to be sent for all of the request except during execution of the Login method |
accept | application/json |
sportsType (optional) | Type of sports of which leagues to display. If none specified, then by default all will be shown. SportsType can be retrieved by calling GetSports. |
marketTypeId (optional) | MarketTypeId refers to the type of market. Valid Values are {0,1,2} |
Â
Response Values
Value | What is this for |
---|---|
Code | Holds the status of the response. If it’s 0, then it is successful. Negative values indicate failure |
SportsType | Sports type |
MarketTypeId | MarketType of the League where it is part of. Value can be any of the below : |
MatchCount | Count of Matches |
Â
Sample JSON Response
Response Type | Response |
---|---|
Success | { |
Fail | { |