Created
April 27, 2017 22:03
-
-
Save prenagha/d6109dfa4c08c31729976b5bd56b94a1 to your computer and use it in GitHub Desktop.
Micropub sample post to Micro.blog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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