CS2DT Open Platform Access Guide
Update Notes
20240430
https://admin.cs2dt.com
Prerequisites
Request
Service Address
Service Area | domain name | Remark |
---|---|---|
Domestic and overseas | https://openapi.cs2dt.com | Open platform OpenAPI access address |
Communication
Request method
Request param
Character Encoding
Signature Mechanism
Returning
Successful call:
{
"success": true,
"data": {
"userId": 0000000000000000000,
"name": "usdt_money",
"data": "0.02"
},
"errorCode": 0,
"errorMsg": null,
"errorData": null
}
{
"success": false,
"data": null,
"errorCode": 140020,
"errorMsg": "请求需要参数app-key",
"errorData": null
}
Fields | type | required | illustrate |
---|---|---|---|
success | Boolean | true | Whether the request is successful. If it is not true, it means that the server process is completed without exception. If it is false, you need to check the error code in the errorCode field and handle it according to the business. |
errorCode | Int32 | true | Error code. When success is true, errorCode must be 0; when success is false, errorCode must not be 0 |
errorMsg | String | true | Error message. When success is true, errorMsg is an empty string. When success is false, errorMsg is an error description. |
errorData | Object | false | Return data when an error occurs. This structure type is uncertain and different types are returned according to different interfaces. |
errorCodeStr | String | false | A brief English description of the error. A non-empty string may be returned only when success is false. |
data | Object | false | The business data returned when the request is successful, the structure varies according to each interface. |
Glossary
name | explain |
---|---|
Service domain name | The domain name we provide services for, the production environment is https://openapi.cs2dt.com |
app-key | The key we use for authentication represents your credentials on our platform. Please keep it properly. If it is leaked, others can also use this key to perform key operations. |
appId | Steam's official unique identifier for the game. DOTA2 -> 570, CSGO -> 730, TF2 -> 440, PayDay2->218620, CSOL -> 2504460 |
How to debug
1.
2.
3.
4.
修改于 2025-03-06 06:34:38