![]() 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. ![]() 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.
0 Comments
Leave a Reply. |