bearblog
bearblog copied to clipboard
New post via CURL?
Hey - is it possible to submit a new post programmatically - e.g. via a CURL command? Or maybe there is an API available?
Currently there isn't an api available, but I've added it to the roadmap :)
micropub is an open protocol for creating posts.
If Micropub is implemented, you can create a post via curl like this:
curl https://aaron.bearblog.dev/micropub -H "Authorization: Bearer xxxxxxxxxx..." -d "h=entry" -d "content=some content" -d name="a title"
Here is an existing python implementation: https://github.com/bear/python-indieweb
Any updates on this?