Skip to main content

custom-content-notification

  • در این نمونه کد از cURL استفاده شده است که می‌توانیدتوسط sudo apt install curl آن را نصب کنید.
curl -X POST https://api.pushe.co/v2/messaging/notifications/web \
-H 'authorization: Token YOUR_TOKEN' \
-H 'content-type: application/json' \
-d '{
"app_ids": "YOUR_APP_ID",
"custom_content": {"key1": "Value1","Key2": "Value2"},
"data": {"title": "عنوان پیام", "content": "محتوای پیام"}
}'