Retrieving Data from Content-Type of 'text/event-stream' using Javascript and Google Apps Script
This is a sample script for retrieving the data from Content-Type of ’text/event-stream’ using Javascript and Google Apps Script.
In the current stage, UrlFetchApp of Google Apps Script cannot be retrieved the data from Content-Type of ’text/event-stream’. This sample script can be used for achieving this as a workaround.
This sample script uses EventSource. So this script uses a dialog on Google Docs files (This sample uses Google Spreadsheet.).
Usage
1. Prepare Spreadsheet.
Create new Google Spreadsheet.