This is a simple Node.JS script using the Front GET /events API endpoint fetching all "message" type events from the requester's Front account.
Requests are issued using Axios.
The script will respect your Front API rate limit.
To run this script, save the file locally as a .js file (front_events.js).
Ensure axios is installed;
npm i axios
Replace the YOUR_API_TOKEN
string with your Front API token.
Run the script;
node front_events.js