On 12/15/10 11:46 AM, Jon Spriggs wrote:
Hi,
I'm trying to use a StatusNet instance as part of a project I'm
starting up. One of the things I'd like to do is to link into the
thread, rather than just to the individual message, and I was
wondering whether it's possible to make an API call to get the
conversation ID?
I don't think it's 100% in all proper APIs yet, but there's a couple
things you can grab:
In current 0.9.x, you can pull the notice as an Atom entry via
api/statuses/show:
http://example.com/api/statuses/show/1046.atom
Pull out the <link rel="ostatus:conversation">; it'll list the link to
the conversation page (which includes the ID number if you wish to
extract from there).
On already deployed sites, you can't yet get the individual Atom entry
lookups and the convo ID isn't in the Twitter-style XML and JSON info
yet. :( But -- you could load up its HTML page and pull from there:
http://example.com/notice/1046
Pull out the link with class="response" and it'll be the link to the
conversation (plus a hash fragment on the end).
-- brion
_______________________________________________
StatusNet-dev mailing list
StatusNet-dev@lists.status.net
http://lists.status.net/mailman/listinfo/statusnet-dev