Help using Drafts Script by sorashima

There is a Drafts script that sends a Draft to Dynalist’s inbox via the API. However, I don’t know how to use it and the user sorashima didn’t leave any contact information. The main question is where to enter the Dynalist Secret Token? The script says you need it, but doesn’t tell you where to enter it. I’ve tried a few different locations, but always get an error message. I’m pretty sure it goes in the first three lines somewhere:

var credential = Credential.create("Secret Token of Dynalist", "Dynalist");
credential.addPasswordField("token", "Secret Token");

Anyone know? Thanks!

When you run the script it should prompt you to enter the token. It then gets stored in the credentials store.

1 Like

Thanks. I deleted the credentials, ran the script again, and it worked.