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

Support for creating and sharing public url from the app #1285

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

retiolus
Copy link
Contributor

@retiolus retiolus commented Nov 2, 2022

@di72nn
Copy link
Member

di72nn commented Nov 2, 2022

I guess I understated the complexity of this for a newcomer. Actually, even I spent an hour remembering how all this works and I'm still having trouble putting it all together :)

I'll probably have to implement it myself (because the codebase is more complex than it should have been), but here's some pointers so you can hack something usable for yourself.

The very minimum that needs to be done is a call like this:

        Article article = wallabagService.modifyArticleBuilder(articleId)
                .isPublic(true)
                .execute();

That would request the server to "share" the article. The returned article would contain the publicUid field.

The problem is that Android would only allow you to do that in a non-UI thread (because it's a "long" network operation). I guess the simplest way would be to use AsyncTask.

I'll try to implement it properly in the near future, but can't promise anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants