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

API addition to allow 3rd party (tt-rss) integration in 1.9.1 #1425

Closed
joshp23 opened this issue Sep 18, 2015 · 9 comments
Closed

API addition to allow 3rd party (tt-rss) integration in 1.9.1 #1425

joshp23 opened this issue Sep 18, 2015 · 9 comments

Comments

@joshp23
Copy link
Contributor

joshp23 commented Sep 18, 2015

Hey guys,

Any way to get this included into Wallabag?

TT-RSS is a self-hosted, online rss feed aggregator, similar (but superior IMO) to the old Google Reader application.

A plugin dev over on TT-RSS forums managed to make a plugin for posting RSS feed items in TT-RSS directly to a Wallabag installation from within the TT-RSS application itself, but had to patch Wallabag to achieve this without an annoying auth popup.

Here is the forum post on tt-rss discussing this.

Here is the patched version of Wallabag on github.

Here is the comparison of the patched version against unpatched Wallabag, obviously just showing what the patch did.

Perhaps this would help solve the annoying auth pop-ups that occur with the various plugins, like the chrome plugin and the Android app?

Thanks for looking!

@tcitworld
Copy link
Member

Hi,
We know of this work. It was done a while ago, and attempted to provide an API for wallabag. But now, we have worked on a whole new version of wallabag that is much more clean and complete, and it features an API. So now TTRSS will be able to add items directly into wallabag using our new API.

@joshp23
Copy link
Contributor Author

joshp23 commented Sep 18, 2015

You know what, I even knew that... so this plugin and api patch works for the 1.9.x branch, but with 2.0 there is a whole new world of API awesomeness that you have implemented. That sound about right?

No more messing about before coffee and meditation. Check.

Thanks!

@tcitworld
Copy link
Member

Totally right. Now we've got to find someone who is willing to create a plugin for TTRSS that works with our new API.

@joshp23
Copy link
Contributor Author

joshp23 commented Sep 18, 2015

Just wanted to add to this that the patch mentioned above is incomplete after testing. It seems to work fine on 1.9, for which it was made, but breaks on 1.9.1. I corrected this for folks on 1.9.1, like myself, and detailed the difference in the thread I mentioned above in this post. Folks on 1.9.1 that want to test this must use the instructions there.

So there is clear api functionality for TTRSS and Wallabag to communicate for 1.9 via the patch, and for 1.9.1 that patch is not breaking Wallabag if the instructions above are followed, but it doesn't seem to have full functionality. It will allow you to post, but the auth wall still blocks you.

It would be great to see that patch realized for 1.9.1 while we wait for 2.0.

At any rate, thanks for the great work.

@tcitworld
Copy link
Member

It will allow you to post, but the auth wall still blocks you.

You may be interested by this page about sessions.

It would be great to see that patch realized for 1.9.1 while we wait for 2.0. *

I can't speak for everyone, but I'm not sure we would gain much time by doing this. v1.9.1 was intended to be the last 1.x version, and v2 starts to show up.
As for TTRSS -> wallabag share, tt-rss-wallabag's plugin from Heiko Adams seems to do the trick, even though you can still encounter session issues (which should be fixed by the link above).

You are still free to open a PR so that we look things up, but don't get high hopes of it being merged.

@joshp23 joshp23 changed the title API addition to allow 3rd party integration API addition to allow 3rd party (tt-rss) integration in 1.9.1 Sep 19, 2015
@joshp23
Copy link
Contributor Author

joshp23 commented Sep 19, 2015

Hey, thanks for that, I will look into that session info post haste. I did manage to get xppppp to update his patch repo, and will be testing today. I will update here if it works out.

Incidentally, his plugin does work out of the box for publishing to wallabag from ttrss, it just requires a manual auth, which is what the "crude api.php" is supposed to work around. At any rate, I look forward to 2.0!!!

@tcitworld
Copy link
Member

At any rate, I look forward to 2.0!!!

We all do.
For all that would be interested in starting the work for a TTRSS->wallabag export plugin when v2's out, there's our documentation : http://v2.wallabag.org/api/doc#post--api-entries.{_format}

@joshp23
Copy link
Contributor Author

joshp23 commented Sep 19, 2015

I just wanted to close this off with a resounding cry for success. For any folks that stumble on this, to resolve the failure:

  • I first followed the instructions on this page that tcitworld pointed me to
  • I then updated the patch files from the update in xppppp's repo fork.
  • Then I re-entered in the user and url info in the ttrss patch after entering in bogus info to reset things

and it works like a charm. Thank you!

@nicosomb
Copy link
Member

This issue affects wallabag v1. This version won't move anymore.

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

No branches or pull requests

3 participants