Skip to main content

customized-notification

  • در این نمونه کد از cURL استفاده شده است که می‌توانیدتوسط sudo apt install curl آن را نصب کنید.
curl -X POST https://api.pushe.co/v2/messaging/notifications/ \
-H 'authorization: Token YOUR_TOKEN' \
-H 'content-type: application/json' \
-d '{
"app_ids": "YOUR_APP_ID",
"filters": {
"device_id": ["device_id_1"]
},
"data":{
"title": "سلام {{ name | کاربر }} عزیز",
"content":"به شما {{ discount | 10}} درصد تخفیف تعلق گرفت."
},
}'