推送服务消息
开发中
正式环境
https://accounts.zwsoft.cn
正式环境
https://accounts.zwsoft.cn
POST
/api/v1.0/trusted/mns
最后修改时间:2024-12-13 03:51:47
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
objectId
string
对象guid
types
string
消息类型
content
string
消息内容
示例
{
"types": "LicenseTimeChange",
"content": "{\"productCode\":\"ZWCAD_PRO\",\"takeTime\":1719365386,\"expiresTime\":1719375386}",
"objectId": "86630576-ace7-4f2b-92aa-03af8f14298e"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://accounts.zwsoft.cn/api/v1.0/trusted/mns' \
--header 'Content-Type: application/json' \
--data-raw '{
"types": "LicenseTimeChange",
"content": "{\"productCode\":\"ZWCAD_PRO\",\"takeTime\":1719365386,\"expiresTime\":1719375386}",
"objectId": "86630576-ace7-4f2b-92aa-03af8f14298e"
}'
返回响应
🟢200成功
application/json
Body
status
integer
返回码
message
string
错误详细信息
error
string | null
错误代号
data
array[string]
必需
示例
{
"status": 0,
"message": "string",
"error": "string",
"data": [
"string"
]
}
修改于 2024-12-13 03:51:47