This is a simple Deno serverless function that checks the next n days for upcoming events and sends a message containing said events to the user through the PushBullet API
Endpoint | Params | Function |
---|---|---|
/checkUpcomingEvents |
days - number of days ahead
to check |
Check days days for upcoming
events and notify the user |
Variable | Description |
---|---|
PUSHBULLET_API_KEY | Your PushBuller API key obtained from settings |
GIST_ID | The ID of the gist where you have your events.json file stored |
Here is an example file
{
"eventName": [
{
"name": "Someone",
"date": "2023-03-12"
}
]
}
This generates the message Sun Mar 12 2023: eventName of Someone