Add support for event-based shopping list syncing with other shopping list apps #1350
Closed
michael-genson
started this conversation in
Feature Request
Replies: 1 comment 1 reply
-
We could just use the current Apprise integration and utilize the Apprise JSON Type and detect if it's using the JSON prefix and provide the data for each type of type of notification. I think this would allow for the most flexible approach and probably wouldn't require any Database changes, just some backend implementation - though they would be extensive ones changes to get the right data in the background. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Before submitting this feature request I have
Please Describe The Problem To Be Solved
While the REST API opens up the possibility for accessing the shopping list and its items through querying, it would be ideal to implement a webhook or server-to-server notification for event-based shopping list synchronization with external apps (e.g. Alexa, Todoist).
(Optional): Suggest A Solution
A potentially simple solution would be to use the existing apprise integration service and extend support to shopping list items. There's already an event trigger for shopping list updates, but it doesn't capture adding or removing items. A quick-and-dirty solution would be to add the shopping list listener to item events, but that seems like a hack over having a separate event. One issue with the apprise integration is that it doesn't give any programmatic metadata (i.e. the id of the record that triggered the event), so either including the id of the record in the message, or including some metadata would be required.
Another option is to extend the webhook service to accommodate event-driven webhooks. This solves the issue of providing programmatic metadata, but would require some additional changes since they're currently scheduled, not event-based.
Additional Information
Beta Was this translation helpful? Give feedback.
All reactions