3.4. GetUserInformation

Show the user configuration in the system. The information provided is based on the settings from the platform.

 

Request

Method

URL

Method

URL

GET

/AsianOddsService/GetUserInformation

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 is 0, then it is successful. Negative values indicate failure

BaseCurrency

Default Currency of the user

ActiveBookies

Contains the Active Bookies. If a bookie is not put into the active list from the settings, that bookie will not appear on the bookie list.
Note that feeds, list of matches and leagues that can be queried and use depends on this list for that user.

CreationDate

When the account was created in Milliseconds format since last epoch

DefaultStake

Default Stake to be used, 0 if disabled.

ExpiryDate

When the account will expire, in milliseconds format since last epoch

ExternalIP

IP Address used.

OddsType

OddsType by default. It can be :
MY for Malay
00 for European
HK for Hong Kong

Status

Shows if the account is active or not

UserId

Username used.

 

Sample JSON Response

Response Type

Response

Response Type

Response

Success

{
"Code": 0,
"Result": {
"ActiveBookies": [
"IBC",
"SBO",
"PIN",
"ISN",
"GA2"
],
"BaseCurrency": "EUR",
"CreationDate":1442928703000,
"DefaultStake": 0,
"ExpiryDate": 4102444800000,
"ExternalIp": "127.0.0.1",
"OddsType": "MY",
"Status": "Active",
"UserId": "SUPPORT"
}
}

Fail

{
"Code": -1,
"Result": {
"ActiveBookies": [],
"BaseCurrency": null,
"CreationDate": 0,
"DefaultStake": 0,
"ExpiryDate": 0,
"ExternalIp": null,
"OddsType": null,
"Status": null,
"UserId": null
}
}