Add support for Conversation API #328

Closed
yvolk opened this Issue Feb 7, 2016 · 3 comments

Projects

None yet

2 participants

@yvolk
Member
yvolk commented Feb 7, 2016 edited

Using a dedicated "Conversation" API (if it is supported by a Social network) could allow us to download to AndStatus and show to a User more messages of a conversation than we can now.
Currently we discover a conversation tree, retrieving related messages one-by-one using "in reply to" field of a message.

  1. GNU Social has conversation API: https://server.tld/api/statusnet/conversation/(Conversation-id).json
    The conversation id is sent in every regular post.
    E.g. conversation on this topic: https://loadaverage.org/api/statusnet/conversation/7507140.json
  2. Twitter, apparently, has no such API available to public (private URL, available for Twitter's own app only, is https://api.twitter.com/1.1/conversation/show.json ). See this long discussion: https://twittercommunity.com/t/view-conversations-api-support/11090/41
  3. Pump.io has all replies ("Comments") embedded in the main "Note", when we request that note only. Plus it has a separate API for "replies", which can be used to find replies of replies recursively (see #276 ).
@yvolk yvolk added the New feature label Feb 7, 2016
@yvolk
Member
yvolk commented Apr 17, 2016

I just noticed that we already had the same ticket created by @annando #270
Quoting @annando below:

Friendica and Statusnet support commands for fetching all posts of a thread. Friendica and Statusnet are using different commands for that.

For Friendica it is "conversation/show". For parameters see the documentation: https://github.com/friendica/friendica/wiki/Friendica-API

This command is used in Twitter as well - but can only be used with the application keys for the original Twitter app.

Statusnet has a slightly different approach. The API call is "statusnet/conversation/4711.as" (where "4711" is the conversation id). The extension ".as" is important.

Using these commands would speed up the showing of threads very much.

@annando
annando commented Apr 17, 2016

Friendica now supports the GNU Social command as well. So supporting "statusnet/conversation/" would help a lot.

@yvolk yvolk added a commit that referenced this issue Dec 15, 2016
@yvolk yvolk #328 fixed conversation loading. Fixed commands comparison (very old …
…bug, as I see...)
9e0e017
@yvolk
Member
yvolk commented Dec 17, 2016

Implemented in v.31.01. Now in the Open beta testing https://play.google.com/apps/testing/org.andstatus.app

@yvolk yvolk closed this Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment