mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Webhook extend with ability to receive time-limited access token before POST (Google API, spreadsheets) #3809
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#3809
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ww7 on GitHub (Dec 4, 2024).
📑 I have found these related issues/pull requests
Not found related issues.
🏷️ Feature Request Type
New notification-provider, Change to existing notification-provider
🔖 Feature description
I need to keep notifications on Google Spreadsheet.
It can be done via HTTP POST (Webhook). But require a time-limited token (to use as a variable at webhook).
✔️ Solution
Use Google Scripts middleware (see second comment).
❓ Alternatives
Google API OAuth2 working with limited by 60 minutes
ACCESS_TOKENthat can be received with e.g.curl:I obtained

CLIENT_IDandCLIENT_SECRETat Google Console Spreadsheet API andREFRESH_TOKENexchanged at OAuth 2.0 Playground (selectSpreadsheets v3for "Authorize APIs" button.)With such POST a new line will be added to the spreadsheet by
curl:@ww7 commented on GitHub (Dec 4, 2024):
If request difficult to achieve with Kuma, it can be solved with Google Scripts as middleware.
Publish on every save and use resulted link with Webhook notification at Kuma with Custom Body as
One thing what I didn't get, with
curltest it not returning JSON to terminal.