保存消息推送设置
开发中
POST
https://saas-open.vhall.com/v3/users/msg-config/save-push-config
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://saas-open.vhall.com/v3/users/msg-config/save-push-config' \
--header 'x-login-user-info: {"user_id": 12345, "platform": 15, "exp_time": 10000, "business_account_id": 1000, "ch": "b"} ' \
--header 'platform: 15' \
--form 'push_switch="1"' \
--form 'app_key=""' \
--form 'sign_type=""' \
--form 'signed_at=""' \
--form 'sign=""'
响应示例响应示例
{
"code": 0,
"msg": "string",
"data": {}
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/x-www-form-urlencoded
x-login-user-info
string
必需
示例值:
{"user_id": 12345, "platform": 15, "exp_time": 10000, "business_account_id": 1000, "ch": "b"}
platform
integer
可选
默认值:
15
Body 参数multipart/form-data
push_switch
string
必需
示例值:
1
secret_key
string
签名key
示例值:
aaa1234567890001
callback_url
string
回调地址
示例值:
https://a123123.com
content_type
string
可选
示例值:
application/json
msg_types
string
可选
示例值:
chat
app_key
string
必需
默认值:
{{app_key}}
sign_type
integer
必需
默认值:
{{sign_type}}
signed_at
integer
必需
默认值:
{{signed_at}}
sign
string
计算生成的签名值
默认值:
{{sign}}
返回响应
修改于 2025-05-28 05:26:37