This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="js/jsOAuth-1.3.6.min.js" type="text/javascript"></script> | |
| <script src="js/evernote-sdk-minified.js" type="text/javascript"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <recoIndex docType="unknown" objType="image" objID="fc83e58282d8059be17debabb69be900" engineVersion="5.5.22.7" | |
| recoType="service" lang="en" objWidth="2398" objHeight="1798"> | |
| <item x="437" y="589" w="1415" h="190"> | |
| <t w="87">EVER ?</t> | |
| <t w="83">EVER NOTE</t> | |
| <t w="82">EVERNOTE</t> | |
| <t w="71">EVER NaTE</t> | |
| <t w="67">EVER nine</t> | |
| <t w="67">EVER none</t> | |
| <t w="66">EVER not</t> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| client = EvernoteClient(token=dev_token, sandbox=False) | |
| noteStore = client.get_note_store() | |
| note_guid = '5056b825-e447-4eeb-bfda-cf7a86241f49' | |
| note = noteStore.getNote(dev_token, note_guid, False, True, True, True) | |
| for r in note.resources: | |
| print r.recognition.body | |
| # Output: | |
| # <?xml version="1.0" encoding="UTF-8"?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| client = EvernoteClient(token=dev_token, sandbox=False) | |
| noteStore = client.get_note_store() | |
| note_guid = '5056b825-e447-4eeb-bfda-cf7a86241f49' | |
| note = noteStore.getNote(dev_token, note_guid, False, True, True, True) | |
| for r in note.resources: | |
| recogData = noteStore.getResourceRecognition(r.guid) | |
| print recogData |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Evernote OAuth config | |
| consumerKey : 'your-key', | |
| consumerSecret : 'your-secret', | |
| evernoteHostName : 'https://www.evernote.com', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| loginWithEvernote: function() { | |
| options = { | |
| consumerKey: app.consumerKey, | |
| consumerSecret: app.consumerSecret, | |
| callbackUrl : "gotOAuth.html", // this filename doesn't matter in this example | |
| signatureMethod : "HMAC-SHA1", | |
| }; | |
| oauth = OAuth(options); | |
| // OAuth Step 1: Get request token | |
| oauth.request({'method': 'GET', 'url': app.evernoteHostName + '/oauth', 'success': app.success, 'failure': app.failure}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| success: function(data) { | |
| var isCallBackConfirmed = false; | |
| var token = ''; | |
| var vars = data.text.split("&"); | |
| for (var i = 0; i < vars.length; i++) { | |
| var y = vars[i].split('='); | |
| if(y[0] === 'oauth_token') { | |
| token = y[1]; | |
| } | |
| else if(y[0] === 'oauth_token_secret') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="deviceready" class="blink"> | |
| <p class="event listening">Connecting to Device</p> | |
| <p class="event received">Device is Ready</p> | |
| <!-- Clicking "Click Me" will call app.loginWithEvernote() --> | |
| <input type="submit" value="Login" onClick="app.loginWithEvernote()"</input> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <activity android:name="com.evernote.client.android.EvernoteOAuthActivity" | |
| android:configChanges="orientation|keyboardHidden" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static final String CONSUMER_KEY = "Your consumer key"; | |
| private static final String CONSUMER_SECRET = "Your consumer secret"; | |
| private static final EvernoteSession.EvernoteService EVERNOTE_SERVICE = EvernoteSession.EvernoteService.SANDBOX; |
OlderNewer