Send custom messages in the background

最新の更新:2022-11-22

Distribution collection: download postMan on the computer and then import link on the top left of the software:https://www.getpostman.com/collections/618d2460851f697dc22c

The custom message format is as follows:

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"
        }
    }
}'

        
このコードブロックは、フローティングウィンドウに表示されます

Parameter description

parameter Type definition
content_type String Optional, custom content type
title String Optional, custom title
msg_content String Must, customize content
extras JsonObject Optional. Customized additional fields. The key/value format is String
在文档中心打开