Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Created August 15, 2016 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronpk/bb8628da6bf54bf85aa17d637d365b61 to your computer and use it in GitHub Desktop.
Save aaronpk/bb8628da6bf54bf85aa17d637d365b61 to your computer and use it in GitHub Desktop.
{
"secret": "1234abcd",
"source": "http://rhiaro.co.uk/2015/11/1446953889",
"target": "http://aaronparecki.com/notes/2015/11/07/4/indiewebcamp",
"post": {
"type": "entry",
"author": {
"name": "Amy Guy",
"photo": "http://webmention.io/avatar/rhiaro.co.uk/829d3f6e7083d7ee8bd7b20363da84d88ce5b4ce094f78fd1b27d8d3dc42560e.png",
"url": "http://rhiaro.co.uk/about#me"
},
"url": "http://rhiaro.co.uk/2015/11/1446953889",
"published": "2015-11-08T03:38:09+00:00",
"name": "repost of http://aaronparecki.com/notes/2015/11/07/4/indiewebcamp",
"repost-of": "http://aaronparecki.com/notes/2015/11/07/4/indiewebcamp",
"wm-property": "repost-of"
}
}
@aaronpk
Copy link
Author

aaronpk commented Aug 15, 2016

To turn this into a Micropub post, maybe something like:

POST /micropub
Authorization: Bearer 1234abcd

h=entry&
url=http://rhiaro.co.uk/2015/11/1446953889&
published=2015-11-08T03:38:09+00:00&
name=repost+of+http://aaronparecki.com/notes/2015/11/07/4/indiewebcamp&
repost-of=http://aaronparecki.com/notes/2015/11/07/4/indiewebcamp&
author[name]=Amy+Guy&
author[photo]=http://webmention.io/avatar/rhiaro.co.uk/829d3f6e7083d7ee8bd7b20363da84d88ce5b4ce094f78fd1b27d8d3dc42560e.png&
author[url]=http://rhiaro.co.uk/&
source=http://rhiaro.co.uk/2015/11/1446953889

Open questions:

  • is source the best name?
  • where do we include target?
  • do we need to keep wm-property? (I believe rhiaro asked for that to make it easier for her to process)

(Note that source and url are not always the same, for example when Bridgy sends webmentions with a source domain of brid.gy but reports the comment URL as twitter.com)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment