Great to see this script used in the wild for the first time John! And good to see it just works. Well, sort of. I’m glad you had the authorization figured out. On the use of Basic Auth, I don’t have a specific plugin for this. Since WordPress 5.6, you can use REST API authentication with Application Passwords out of the box.
One more thing 😉… I look forward to exploring how we could use Indieweb building blocks like Micropub and Webmentions to connect Drummer blogs. How we can reply through Post Kinds in WordPress, it would be great if we can integrate this into Drummer as well. I feel it could be the same sort of scripts but different endpoints and data objects. But again, not a programmer here. Maybe more of a code-poet…
Aaron Davis says
This seem so promising Frank and John. I have followed Drummer with intrigue, read Amit Gawande’s breakdown, but wondered where it fits with my current practices. I was intrigued by the connection with Micro Blogs. However, it was not until your post sharing the ability to connect with WordPress that I started to properly think about how I might use Drummer. I can imagine using it for ‘micro’ posts, but as you touch on, I am still unsure how this fits into with things like Post Kinds etc.
I guess I will have to start playing.
I’ve also wondered about Post Kinds. I’ve managed using appleScript to set a basic kind, but not to bring all the extra fields needed for a reply.
I am using WordPress 5.8.1 so wonder why the auth failed. might be my bad. I’ll disable the plugin and test.
A code poet sounds like a good position to have!
Frank & Aaron I did a little more digging. I could not see any kind info in the Rest API representation for a post. Then I saw:
At the moment I’d be more than happy to post as a draft and set the kind myself. I suspect that I’d reply using the WordPress editor, like now, rather than Drummer anyway.