Created
July 4, 2019 04:14
-
-
Save smd877/ebfbd1c1884bbe259a04fe806a906b92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export AUTH_KEY=ここにクラウドメッセージングタブのサーバーキーを入力 | |
export SEND_TO=ここにブラウザで取得したInstance ID Tokenを入力 | |
curl -X POST -H "Authorization: key=$AUTH_KEY" -H "Content-Type: application/json" -d '{ "notification": { "title": "This is Title!!!", "body": "Body Body Body.", "icon": "firebase-logo.png" }, "to": "'$SEND_TO'" }' "https://fcm.googleapis.com/fcm/send" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment