📜  用于发送消息 firebasde - 任何代码示例的 curl 字符串

📅  最后修改于: 2022-03-11 14:58:26.483000             🧑  作者: Mango

代码示例1
curl -X POST -H "Authorization: Bearer YOUR-TOKEN" -H "Content-Type: application/json" -d '{
  "message":{
    "token":"TARGET_DEVICE_TOKEN",
    "notification":{
      "title":"Hello",
      "body":"This is a text message!"
    }
  }
}' https://fcm.googleapis.com/v1/projects/YOUR-PROJECT-SHORT-NAME/messages:send