Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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