华为云WELINK-小微推送:请求示例

时间:2023-12-18 15:59:47

请求示例

  • 请求参数示例
{
    "toUserList":["xxx@welink","xxx@welink"],
    "titleCn":"你好,欢迎使用 WeLink !",
    "titleEn":"Hello,Welcome to WeLink!",
    "endDate":"2021-01-15",
    "urlCn":"中文消息跳转链接",
    "urlEn":"英文消息跳转链接",
    "iconUrlCn":"中文图标链接",
    "iconUrlEn":"英文图标链接"
}
  • 请求URL示例
curl -X POST \
'https://open.welink.huaweicloud.com/api/athenaservice/v1/contextaware/push' \
-H 'Accept-Charset: UTF-8' \
-H 'Content-Type: application/json' \
-H 'x-wlk-Authorization: access_token' \
-d '{
    "toUserList":["xxx@welink","xxx@welink"],
    "titleCn":"你好,欢迎使用WeLink!",
    "titleEn":"Hello,Welcome to WeLink!",
    "endDate":"2021-01-15",
    "urlCn":"中文链接地址",
    "urlEn":"英文链接地址",
    "iconUrlCn":"中文图标地址",
    "iconUrlEn":"英文图标地址"
}'
support.huaweicloud.com/devg-welink/start-15.html