Skip to content

Instantly share code, notes, and snippets.

@manton
Last active September 5, 2018 18:45
Show Gist options
  • Save manton/52e0015f87fcf50c687a0c64e392fc37 to your computer and use it in GitHub Desktop.
Save manton/52e0015f87fcf50c687a0c64e392fc37 to your computer and use it in GitHub Desktop.
GET /micropub?q=config
Authorization: Bearer xxxxxxxxx
Accept: application/json
HTTP/1.1 200 OK
Content-type: application/json
{
  "media-endpoint": "https://media.example.com/micropub",
  "destination": [
    {
      "uid": "https://mysite.example.com/",
      "name": "mysite.example.com"
    },
    {
      "uid": "https://othersite.example.com/",
      "name": "My Other Site"
    }
  ]  
}
POST /micropub
Authorization: Bearer xxxxxxxxx
mp-destination=https://mysite.example.com/&content=Hello%20world.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment