bearblog icon indicating copy to clipboard operation
bearblog copied to clipboard

New post via CURL?

Open aaronpkelly opened this issue 4 years ago • 3 comments

Hey - is it possible to submit a new post programmatically - e.g. via a CURL command? Or maybe there is an API available?

aaronpkelly avatar Jul 04 '20 12:07 aaronpkelly

Currently there isn't an api available, but I've added it to the roadmap :)

HermanMartinus avatar Jul 04 '20 15:07 HermanMartinus

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

u0nel avatar May 15 '21 10:05 u0nel

Any updates on this?

strdr4605 avatar Jul 20 '22 10:07 strdr4605