Tokens!

23rd October, 2007 . 1 comments

We've just added token support to the API. This allows you to use rst2a as a pastebin for reStructuredText documents.

You can upload a file once, and get back a token. You can then create multiple renderings of your document using the token, instead of having to upload the file every time:

> TOKEN=$(curl http://api.rst2a.com/1.0/rst2/token?uri=http://docutils.sourceforge.net/docs/ref/rst/introduction.txt)
> curl http://api.rst2a.com/1.0/rst2/html?token=$TOKEN\&style=zope > introduction.html
> echo $TOKEN
6c15c58148567e8690a8504eb826b8bc

You can also use the token in links which makes it easy to share rendered views of your documents:

The create pages have been updated to redirect to urls with tokens included when you download a document. So for any documents you create through rst2a, you can copy the download url and give it the other people, so they can download the rendered document as well.

1 Comments

Subscribe to comments

Post a comment