快速测试自定义消息

最新更新:2023-02-28

后台下发自定义消息

下发合集:电脑上下载 postMan 然后软件左上方 import-link:https://www.getpostman.com/collections/618d2460851f697dc22c

自定义消息格式如下:

curl --location --request POST 'http://pricloud-master-api.glqas.mtpushoa.com/v3/push' \ --header 'Authorization: Basic MWM0Yjc0OWExN2Y2YWNhMzM5NjBhNTYwOjQ5ZjlkODI2MDExMmI0YmVlMDVhMzQzOA==' \ --header 'Content-Type: application/json' \ --data-raw '{ "platform": "android", "audience": { "registration_id": [ "1a0018970ab4981bc47" ] }, "message": { "content_type": "text", "title": "custom_title", "msg_content": "custom_content", "extras": { "key": "value" } } }'
          curl --location --request POST 'http://pricloud-master-api.glqas.mtpushoa.com/v3/push' \
--header 'Authorization: Basic MWM0Yjc0OWExN2Y2YWNhMzM5NjBhNTYwOjQ5ZjlkODI2MDExMmI0YmVlMDVhMzQzOA==' \
--header 'Content-Type: application/json' \
--data-raw 
'{
    "platform": "android",
    "audience": {
        "registration_id": [
            "1a0018970ab4981bc47"
        ]
    },
    "message": {
        "content_type": "text",
        "title": "custom_title",
        "msg_content": "custom_content",
        "extras": {
            "key": "value"
        }
    }
}'

        
此代码块在浮窗中显示

参数说明

参数 类型 定义
content_type String 可选,自定义内容类型
title String 可选,自定义标题
msg_content String 必须,自定义内容
extras JsonObject 可选,自定义额外字段,key/value 格式均为 String
在文档中心打开