Access Guide
Update Notes
20230927
Prerequisites
Request Structure
Service Address
Service Region | Domain | Remark |
---|---|---|
Domestic and foreign | https://openapi.c5game.com | Open Platform OpenAPI Access Address |
Communication Protocol
Request Method
Request Parameters
Character Encoding
Signature Mechanism
Return Results
Call successful:
{
"success": true,
"data": {
"userId": 111,
"balance": 100.21
},
"errorCode": 0,
"errorMsg": "",
"errorData": {},
"errorCodeStr": ""
}
{
"errorCode": 400001,
"errorMsg": "Please enter the correct app-Key",
"success": false
}
Field | Type | Always Returned | Description |
---|---|---|---|
success | Boolean | Yes | Whether the request was successful; true represents that the server-side process has completed without exceptions; if false, you need to look at the errorCode field error code and handle it accordingly |
errorCode | Int32 | Yes | Error code, when success is true, errorCode must be 0; when success is false, errorCode must not be 0 |
errorMsg | String | Yes | Error message, when success is true, errorMsg is an empty string; when success is false, errorMsg is an error description |
errorData | Object | No | Return data when an error occurs, this structure type is not fixed, each interface returns different types |
errorCodeStr | String | No | Brief English description of the error, only when success is false, may a non-empty string be returned |
data | Object | No | Business data returned when the request is successful, the structure varies according to each interface |
Glossary
Name | Explanation |
---|---|
Service Domain | The domain name of our service, the production environment is http://openapi.c5game.com |
app-key | The key used by us for authentication, representing your credentials on our platform, please keep it safe. If leaked, others can also use this key to perform critical operations. |
How to Debug
1.
2.
3.
4.
Modified at 2023-09-29 06:32:00