Post to Micro.blog with more than one blog per ID

On Micro.blog it is possible to have more than one blogs under the same ID. The Actions directory has actions for posting to Micro.blog, but not for choosing which blog to post to if you do have more than one blog. I do not have the technical know how to even to write an action to do this, but I did wonder if it is something that is possible, or is it beyond Drafts’ capabilities.

Thank you.
David.

If you have an action using Drafts’ credentials, you should be able to duplicate the action and change the modifier ID. Then when run it ill prompt you for an additional set of credentials to post with.

See the page on credentials for details about setting identifiers.

Thank for this, but I don’t think that it will work in this case. Because my two Micro.blog blogs are under the same account (read ID), they operate from the same Credential, from my understanding. So another way is needed to choose which blog to post to.

The API docs suggests there is a unique app token (bearer ID). That would presumably be your credential for each micro blog in the Action.

If that doesn’t help, perhaps you could share a link to a specific action you would like to utilise? We could then take a look at it and see if we can see if and where it cold be modified.

I logged into my Micro.blog account to look around, and it’s not at all clear how you would get a token specific to a blog. I only have one blog, so not sure I would be seeing the same thing. Probably worth asking over on the Micro.blog forum about the right way to get a Micropub token for a specific blog.

That said, once you do get the right token, if you are using this example action and want to use it for more than one different blog, it would require a minor modification to use a unique credential identifier for each blog you want to target…

// the "Micro.blog" in this line would have to be different
// in each copy of the action you want to target a different token
var credential = Credential.create("Micro.blog", "Insert Micro.blog app token generated on Micro.blog account page.");

Note the Send to Micro.blog example uses the Micro.blog app, which would, I presume, allow you to select which blog to use once it opens might also be an option.

1 Like

Thank you for your reply. I’ll follow up with the Micro.blog forum and see what I can find.

And you are correct, the Micro.blog app, both iOS and OS, allows you to select the blog that you want to post to before hitting publish. I just want to see if I can do it all from Drafts.