Skip to content
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

ArchiveBox optional integration? #1466

Open
saywebsolutions opened this issue Mar 16, 2021 · 6 comments
Open

ArchiveBox optional integration? #1466

saywebsolutions opened this issue Mar 16, 2021 · 6 comments

Comments

@saywebsolutions
Copy link

Is there any interest in maybe supporting an https://github.com/ArchiveBox/ArchiveBox integration in some way? It's a good solution for keeping archived copies of links. Maybe new bookmark entries could be added to an archivebox instance if configured?

@marcelklehr
Copy link
Member

marcelklehr commented Mar 17, 2021

A nice way to realize this integration would probably be nextcloud flow. The bookmarks app already exposes a trigger for when new bookmarks are added, which could be used to create an entry in ArchiveBox. The only thing left to do is programming that bit of code. While this is not a priority for me as a maintainer, I'd be happy to help guide anybody willing to take this on.

@saywebsolutions
Copy link
Author

interesting; I'll look into flow, thank you for the info

do you envision this using the workflow script app to potentially run the 'add to archivebox' routine upon bookmark creation?

@marcelklehr
Copy link
Member

That would be cool, but I think the workflow script app only accepts file events and cannot deal with the triggers that the bookmarks app sends. So far, I suspect that a new app would have to be built. Ideally such an app would allow sending arbitrary HTTP requests with parameters so different services can be used as the target.

@saywebsolutions
Copy link
Author

Ok I am following; so basically a new flow app called roughly "make HTTP request" built similarly to the script app but instead able to make HTTP requests to various API endpoints configured by the user. And also able to handle bookmark events. Do you have any info or links about how to receive the bookmark event in a flow script?

@marcelklehr
Copy link
Member

The basic building block of a flow sink/receiver is an Operation, see e.g. the workflow script implementation: https://github.com/nextcloud/workflow_script/blob/master/lib/Operation.php#L132

The bookmarks app triggers instances of GenericEntityEvent with this entity: https://github.com/nextcloud/bookmarks/blob/master/lib/Flow/Bookmark.php

@sunjam
Copy link

sunjam commented May 11, 2021

archivebox already supports RSS, so it should be possible to send it rss feed shares of bookmarks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Flow operations
Development

No branches or pull requests

3 participants