Notify LINE bot of google calendar changes.
- Cloudflare
- Google Calendar API
- LINE Messaging API
- Hono
- Tempo
- Biome
yarn install
cp wrangler.toml.example wrangler.toml
cp .dev.vars.example .dev.vars
Add your wrangler infomation to wrangler.toml
, And token and secrets to .dev.vars
yarn dev:cron
// Ready on http://localhost:xxxxx
curl "http://localhost:xxxxx/__scheduled?cron=*+*+*+*+*"
npx wrangler d1 execute your-db --local --command="SELECT * FROM calendars"
- From here, issue a service account key and download the json file.
- Run
cat <your>.json | base64
and copy and paste the output values into.dev.vars
If extra notification channels are added during debugging, you can remove them below.
curl -X DELETE \
-H "Content-Type: application/json" \
-d '{
"id": "xxx",
"resourceId": "xxx"
}' \
https://your-api/calendars/channel
- testing
- linter & formatter
- CICD