


The following implementation of success and failure will complete the OAuth flow and, if the process completes successfully, produce a valid authentication token that can be used to make calls against the Evernote Cloud API.

Note that a failed login attempt will still result in a successful request failure will be called when some mechanical error-such as a network issue-prevents the request from completing. As you’d expect, these will be called when the request succeeds or fails, respectively. Notice that we’re passing an object literal to oauth.request this object enumerates success and failure callback functions. In our PhoneGap example, we’ve bound app.loginWithEvernote to a button in index.html: (Note that you'll want to replace the value of callbackUrl in your implementation.)īind this function to a user action (such as clicking a button or submitting a form) to integrate it with your application. Next, we need to add our login function which begins that OAuth flow. If you only ever use Evernote on the Web, we recommend exporting your notes from Evernote for Mac or Windows to an Evernote export (.enex) file. Make sure to substitute your consumer key and consumer secret for the placeholder values and remember that you’ll need to change the value of evernoteHostName to when you’re ready to deploy your application in a production environment. Evernote Web Clipper Download and Install for your computer - either Windows PC 10, 8 or 7 and macOS 10 X, 32/64-bit processor, we have you covered.
