-
-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User webhooks #478
Comments
there don't seem to be any existing go libraries for sending webhooks. i might play around with trying to make one based on https://freek.dev/1383-sending-and-receiving-webhooks-in-laravel-apps. |
@MoralCode I don't see a need for a library to send webhooks... They are usually an HTTP GET/POST, and GoLang's http client is straightforward and simple enough. Maybe I'm missing your point? |
I was mostly thinking of a library just as a way to make implementing webhooks easy and simple for applications like Navidrome. To me it seems like the hardest part of implementing webhooks is the setup process of collecting the settings from the user and storing them. I was thinking a library could be useful for simplifying this storage of webhook configurations so an app like Navidrome would just need to pass in the settings from the user and an internal key/identifier for representing that particular webhook-able "event". Whenever the app decides is appropriate for the webhook to be called, it could just be a one-liner to the effect of |
I have something basic thrown together at https://github.com/MoralCode/go-event-webhooks and am starting to see how simple the actual sending of a webhook is. My plan now is to start looking into how user settings are stored and retrieved to see where/how webhooks could be integrated into navidrome |
@tcurdt is there a particular service (you mentioned Zapier) that you are interested in sending these webhooks to at first? just added MoralCode/go-event-webhooks#6 tas a TO-DO item for the webhook library I am making for this and am curious if any particular service should be prioritized |
@MoralCode I used Zapier just as one of the common examples. I'd probably send them to n8n or nodered instead. Or even write my own service. |
I think another good example is IFTTT |
awesome! I added those as ideas to the issue I mentioned within the library. |
Seems there is overlap with #246 |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Navidrome team are limited, and so we are asking for your help. |
It would still be "nice to have" but I think we could close this issue by just having the last.fm scrobbler URL be configurable. https://github.com/navidrome/navidrome/blob/master/conf/configuration.go#L103 |
#2229 will handle 1 and 2. 3 is not currently possible as the clients do not send this info to the server. The other will be eventually implemented |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Navidrome team are limited, and so we are asking for your help. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
As mentioned in #18 it would be nice to allow user to configure webhooks to pass events to other system like e.g. Zapier.
The following events come to mind:
ATM I am mostly interested in 1., 2. and 3.
The text was updated successfully, but these errors were encountered: