Envoyer des messages personnalisés en arrière-plan
Collection de distribution : téléchargez Postman sur votre ordinateur puis importez le lien en haut à gauche du logiciel : https://www.getpostman.com/collections/618d2460851f697dc22c
Le format du message personnalisé est le suivant :
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"
}
}
}'
Afficher ce bloc de code dans la fenêtre flottante
Description des paramètres
| paramètre | Type | définition |
|---|---|---|
| content_type | String | Optionnel, type de contenu personnalisé |
| title | String | Optionnel, titre personnalisé |
| msg_content | String | Obligatoire, contenu personnalisé |
| extras | JsonObject | Optionnel. Champs supplémentaires personnalisés. Le format clé/valeur est String |

