Get the game server list API
Description of Requirement:
The SmileOne platform needs to display a list of game servers on the product page, and merchants need to provide an API to choose server. * Optional according to the product.
Name | Required (Y/N) | Type | Description |
---|---|---|---|
time | N | string | Timestamp of sending request |
sign | Y | string | Signature verification code |
Request method:POST. Parameters are passed in json format.
Return example:
// success
{
"status":200,
"serverList":[
{"serverName":"Server 1","serverId":"1000001"},
{"serverName":"Server 2","serverId":"1000002"},
{"serverName":"Server 3","serverId":"1000003"},
{"serverName":"Server 4","serverId":"1000004"}
],
"error": "",
}
// error
{
"status": 201, // See Appendix 1 for error code
"serverList": "",
"error": "cause of error"
}
Check Appendix 1 for details regarding the error codes.