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
    
  
  
    
  | async function transform(inputPath) { | |
| try { | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const axios = require('axios').default; | |
| const content = fs.readFileSync(inputPath).toString(); | |
| const payload = JSON.stringify({ | |
| text: content, | 
  
    
      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
    
  
  
    
  | DOCS: https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages | |
| -- | |
| URL: https://fcm.googleapis.com/fcm/send | |
| METHOD: POST | |
| HEADERS: | |
| Content-Type: application/json | |
| Authorization: key=<api key> |