Skip to content

Instantly share code, notes, and snippets.

@prenagha
Created April 27, 2017 22:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prenagha/d6109dfa4c08c31729976b5bd56b94a1 to your computer and use it in GitHub Desktop.
Save prenagha/d6109dfa4c08c31729976b5bd56b94a1 to your computer and use it in GitHub Desktop.
Micropub sample post to Micro.blog
#!/bin/bash
# http://help.micro.blog/2017/api-posting/
# https://indieweb.org/Micropub
URL="https://micro.blog/micropub"
TOKEN="aabbcc"
CONTENT="Sample Post Here - http://example.com"
curl --verbose \
--data "h=entry" \
--data-urlencode "content=${CONTENT}" \
--header "Authorization: Bearer $TOKEN" \
$URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment