4.2. GetSports

This method retrieves the list of sports available in the system

 

Request

Method

URL

Method

URL

GET

/AsianOddsService/GetSports

Type

Params

Values

Type

Params

Values

HEADER

AOToken

string

HEADER

accept

application/json

 

Request Values

Value

What is this for

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

 

Response Values

Value

What is this for

Value

What is this for

Code

Holds the status of the response. If it’s 0, then it is successful. Negative values indicate failure

Id

Id of the sports

Name

Name of the sports

 

Sample JSON Response

Response Type

Response

Response Type

Response

Success

{
"Code": 0,
"Data": [
{
"Id": 1,
"Name": "Football"
}
]
}

Fail

{
"Code": -1,
"Data": null
}