Skip to content

Instantly share code, notes, and snippets.

@benweet
Last active November 20, 2015 23:45
Show Gist options
  • Save benweet/4353a9375510c6c9a622 to your computer and use it in GitHub Desktop.
Save benweet/4353a9375510c6c9a622 to your computer and use it in GitHub Desktop.
Get file revision
curl https://app.classeur.io/api/v1/files/ApP3fU20RBsiuJluYrbY/fromRev/40157/toRev/40157 \
-u $USER_ID:$API_TOKEN
@benweet
Copy link
Author

benweet commented Nov 20, 2015

Hi John,

Here is how you can get the previous revision from the REST api:

curl https://app.classeur.io/api/v1/files/ApP3fU20RBsiuJluYrbY/fromRev/40157/toRev/40157
-u $USER_ID:$API_TOKEN

(you just have to generate the API_TOKEN from the settings)

The result will be in json. I can send the content by email if you want (got it with the admin token).

We're working on a revision tab (and fixing bugs...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment