上报数据
POST
/myauth/soft/upData
请求参数
Body 参数application/json
data
object
必需
type
string
上报类型
content
string
上报内容
device_info
string
必需
device_code
string
必需
timestamp
string
必需
skey
string
必需
vkey
string
必需
sign
string
必需
示例
{
"data": {
"type": "按时",
"content": "阿萨德阿萨德按时都",
"device_info": "windows 10",
"device_code": "5A79565CC85400F0",
"timestamp": "1642751466"
},
"skey": "7c580b6e-56fc-41ac-953c-8b6896e26eb1",
"vkey": "asd123",
"sign": "caa040e78c197ea5b59bb5a3218ce080"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/myauth/soft/upData' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"type": "按时",
"content": "阿萨德阿萨德按时都",
"device_info": "windows 10",
"device_code": "5A79565CC85400F0",
"timestamp": "1642751466"
},
"skey": "7c580b6e-56fc-41ac-953c-8b6896e26eb1",
"vkey": "asd123",
"sign": "caa040e78c197ea5b59bb5a3218ce080"
}'
返回响应
🟢200成功
application/json
Body
code
integer
示例:200
success
boolean
成功响应
msg
string
返回文字描述
sign
string
必需
result
object
结果集
timeStamp
string
当前时间戳
ip
string
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "上报成功",
"sign": "8b92b710d3eb5198062eb23c56a2e1e6",
"result": {
"timeStamp": "1642751783",
"ip": "127.0.0.1"
},
"timestamp": 1642751783397
}
🔴500错误
修改于 2022-05-11 05:18:15