Skip to content

Instantly share code, notes, and snippets.

View evernotegists's full-sized avatar

Evernote Gists evernotegists

  • Evernote Corporation
  • Redwood City, CA
View GitHub Profile
@evernotegists
evernotegists / Sample Access Token Request
Last active October 30, 2023 09:49
Sample Access Token Request
https://www.evernote.com/oauth?oauth_consumer_key=internal-dev&auth_token=internaldev.14CD91FCE1F.687474703A2F2F6C6F63616C686F7374.6E287AD298969B6F8C0B4B1D67BCAB1D&oauth_verifier=40793F8BAE15D4E3B6DD5CA8AB4BF62F&oauth_nonce=4078121641140961292&auth_signature=hfA8r3NdMnZbzN0OOmTZIZj6Wkc=&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1429572048&oauth_version=1.0
POST /shard/s1/res/8528dddd-1d71-4e4d-9006-377be7517dfb HTTP/1.1
Host: www.evernote.com
Content-Length: 99
Content-Type: application/x-www-form-urlencoded
auth=S%3Ds1%3AU%3D293f%3AE%3Db46cda%3AC%3D12e5d64584d%3AP%3D37%3AA%3Dfred%3AH%3D50a022dd072798e192
https://www.evernote.com/oauth?oauth_consumer_key=en_oauth_test&oauth_signature=1ca0956605acc4f2%26&oauth_signature_method=PLAINTEXT&oauth_timestamp=1288364923&oauth_nonce=755d38e6d163e820&oauth_token=en_oauth_test.12BF8888B3F.687474703A2F2F6C6F63616C686F73742F7E736574682F4544414D576562546573742F696E6465782E7068703F616374696F6E3D63616C6C6261636B.C3118B25D0F89531A375382BEEEDD421&oauth_verifier=DF427565AF5473BBE3D85D54FB4D63A4
@evernotegists
evernotegists / Sample Redirection URL
Last active October 30, 2023 09:47
Sample Redirection URL
https://www.evernote.com/OAuth.action?oauth_token=internal-dev.14CD91FCE1F.687474703A2F2F6C6F63616C686F7374.6E287AD298969B6F8C0B4B1D67BCAB1D
https://www.evernote.com/edam/note/shard/s4
<en-media width="640" height="480" type="image/jpeg" hash="f03c1c2d96bc67eda02968c8b5af9008"/>
search = [ notebook , separator ] ,
[ "any:" , separator ] ,
term ,
{ separator , term } ;
notebook = "notebook:" , ( word | quoted ) ;
word = wordchar , { wordchar } ;
quoted = '"' , { ( any - '"' ) | '\"' } , '"' ;
<en-todo/>An item that I haven't completed yet.
<br/>
<en-todo checked="true"/>An completed item.
@evernotegists
evernotegists / b64dec.py
Created August 1, 2013 19:41
Convert base64-encoded data from an exported Evernote note back to its original form.
#!/usr/bin/env python
# Copyright 2013 Evernote Corporation. All rights reserved.
import base64
import sys
# Copy the base64 string from the ENEX file and put it into a file
# Pipe base64-encoded data to STDIN
filter = NoteStore.NoteFilter()
filter.ascending = False
spec = NoteStore.NotesMetadataResultSpec()
spec.includeTitle = True
ourNoteList = noteStore.findNotesMetadata(authToken, filter, 0, 100, spec)