To clarify, this is a page on news.indiewebcamp.com which supports inline webactions. When I click “Reply”, a pre-populated new note form from my own site is loaded into an iframe. It detects this, and adjusts its styling accordingly.
Laurent Eschenauer ha ha, they were pretty good thanks :) And congrats on the web-action enabled reply! Hopefully soon I’ll be able to store it here.
Doing a test implementation of a+rel+iframe+postMessage hypermedia UI injection (needs a better name) — using existing rel=create-form
Turns out that performing a GET request on a data URI from PHP works if file_get_contents is used, not if cURL is used. I wonder what support is like for other server side languages — using data URIs in
with could be the basis of some interesting #webactions.
From my initial researches, it looks like
/u/username.json is the best bet, as it gives a JSON array of all posts written by
username, along with like and comment data. It accepts a
max_time=timestamp query param, and a
_ query param, the function of which I am not sure of.
To iterate through all the pages of posts from a certain user, start with their profile URL w/
.json tacked on the end, fetch all the items, get the datetime of the last item, convert that to a timestamp, fetch the same URL with
?max_time=timestamp, repeat until an empty array is returned.