Skip to content

Instantly share code, notes, and snippets.

@evernotegists
Created March 7, 2013 23:49
Show Gist options
  • Save evernotegists/5112981 to your computer and use it in GitHub Desktop.
Save evernotegists/5112981 to your computer and use it in GitHub Desktop.
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});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment