I’m a longtime user of agiletortoise’s Drafts on iOS and macOS but have remained less than a novice in Javascript, which powers its configurables, “Actions.” I’ve been gradually working toward direct integration between Drafts and Write.as - you might call my workflow involving the CLI a midstep. After much fiddling, I’m pleased to report that I’ve finally accomplished this integration via the Writeas API.
Here’s a brief video demo on YouTube showing the actions in use
On the Drafts Directory:
At first run of either action, a credential identifier called “writeas” is created, which will prompt you for “Collection” and “Access Token.”
“Collection” is just the backend term for blog (correct me if I’m wrong there,) so you should enter the lowercase slug of your blog. (Ex: bilge
for write.as/bilge
.) “Access Token” is referring to a WriteFreely/Writeas/Snapas API token. (See: the docs.)
Post to Writeas will publish the current draft contents as an anonymous/“unclaimed” post. These are accessed in the “Posts” menu at /me/posts/
. The URL of the result is then inserted at the cursor (in Drafts) as a markdown-formatted hyperlink.
Post to Writeas Blog will publish the current draft contents as a new post on the blog you specified at credential creation. The URL of the result is then inserted at the cursor (in Drafts) as a markdown-formatted hyperlink.
Example:
I intend to continue exploring the possibilities of this integration and perhaps eventually publish a dedicated “Action Group.” I’d especially love to hear from any Drafts users also using Writeas/WriteFreely.