Kirim Pesan Kustom di Latar Belakang
Koleksi distribusi: unduh postMan di komputer Anda lalu impor tautan di kiri atas perangkat lunak: https://www.getpostman.com/collections/618d2460851f697dc22c
Format pesan kustom adalah sebagai berikut:
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"
}
}
}'
Tampilkan blok kode ini di jendela mengambang
Deskripsi Parameter
| parameter | Tipe | definisi |
|---|---|---|
| content_type | String | Opsional, tipe konten kustom |
| title | String | Opsional, judul kustom |
| msg_content | String | Wajib, isi pesan kustom |
| extras | JsonObject | Opsional. Bidang tambahan kustom, format key/value |










