Search the Community

Showing results for tags 'oauth'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Calendars

  • Community Event Calendar
  • Evernote Events

Forums

  • General Discussions
    • Evernote General Discussions
    • Third Party Application Discussions
    • Using Evernote
    • Billing and Payments
  • Evernote Products
    • Evernote
    • Evernote Business
    • Evernote Web Clipper
    • Scannable
    • Skitch
    • Penultimate
  • International Forums
    • Japanese Discussions
    • Brazilian Portuguese Discussions
    • Discussions in Spanish
    • Korean Discussions
    • Traditional Chinese Discussions

Found 122 results

  1. I'm writing a chrome extension for quick search notes in fuzzy match model. So I need to cache all notes' metadata(title, url, createdTime,etc) in local storage. According to evernote offical doc, there are two ways to authenticate to the Evernote API, developer tokens and OAuth. But right now, 1. developer token has been deprecated.(if you go to the application URL you will get Update: the creation of developer tokens is temporarily disabled. 2. OAuth can only access one specific notebook(depend on user authentication) So my question is : is there anyway can work around to get all notes' metadata?
  2. When making a call to authorize we are getting an unexpected error. I am using the following CURL command with sample data because I do not have the sdk installed. What is this error? I have highlighted the confusing response. This is HTML for the page that is displayed that says 'Oops we encountered unexpected error' I get the same thing when i just enter the url into a browser Kellys-MacBook-Pro:~ kellygold$ curl -X GET 'https://sandbox.evernote.com/oauth?oauth_callback=http://cloud-elements.com&oauth_consumer_key={myapike}&oauth_nonce=3166905818410889691&oauth_signature=xCYjTiyz7GZiElg1uQaHGQ6I&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1496264535&oauth_version=1.0' <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" href="/redesign/global/css/reset.css" /> <link rel="stylesheet" href="/redesign/global/css/fonts.css" media="all" /> <link rel="stylesheet" href="/redesign/global/css/header.css" /> <link rel="stylesheet" href="/redesign/global/css/layout.css" /> <title>Evernote Error</title> </head> <body> <div class="header"> <div class="header-inner"> <a href="https://sandbox.evernote.com/Home.action?/" class="evernote-logo">Evernote</a></div> </div> <div id="container-boundingbox" class="wrapper"> <div id="container" class="wrapper"> <div class="main"> <div class="page-header"> <h1> Oops, we encountered an error.</h1> </div> <div> <p> Sorry, we've encountered an unexpected error.</p> </div> <div class="clear"></div> </div> </div> <div class="footer wrapper"> <a href="https://sandbox.evernote.com/Home.action?/tos/" class="footer-entry">Terms of Service</a><a href="https://sandbox.evernote.com/Home.action?/privacy/" class="footer-entry">Privacy Policy</a><span class="footer-entry last">Copyright 2017 Evernote Corporation. All rights reserved.</span> </div> </div> </body> </html>
  3. Hi all, I just started having a look at the evernote developer guide, but I am struggling to understand if and how it is possible to send the text stored in an HTML5 input to evernote through OAuth. Is it possible in pure javascript or do I need a backend script? Did someone of you already implemented it? All the best, Christian
  4. I am getting " Oops, we encountered an error. Sorry, we've encountered an unexpected error." when I try to get Access token. I followed https://dev.evernote.com/doc/articles/authentication.php the steps in it. In third step I'm unable to get access token. Is my link correct? I'm using Postman! https://sandbox.evernote.com/oauth?oauth_consumer_key=ZZZZZZZ&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1474958755&oauth_nonce=FFdKTf&oauth_version=1.0&oauth_signature=fCHbZv+j88ZFF9ptfZQqcTmTUnQ=&oauth_token=YYYYYYYY&oauth_verifier=XXXXXX
  5. Hello. I am developing evernote app in javascript. I have a trouble regarding oauth. Although I can get a token in a sandbox environment, I cannot get it in a production environment. I use a sample code in https://github.com/evernote/phonegap-example/blob/master/HelloWorld/www/js/index.js , which is linked from evernote web site (https://dev.evernote.com/intl/jp/doc/start/javascript.php). In a sandbox environment, I can get token, but in a production environment, I cannot. In a production environment, a screen, which I can input user name and password, is popped up. However, after inputting information, the page moves to the attached page (Sorry, that page wasn't found). Please find the attached picture. What I have tried in order to move from a sandbox environment to a production environment is changing evernotehostname from "https://sandbox.evernote.com" to "http://www.evernote.com". I am embarrassed because it does not work in a production environment in spite of good working in a sandbox environment. I have believed these two environments are completely same. However, is anything different? I am appreciate it if you propose how to improve it.
  6. お世話になります。 javascriptを用いて、evernoteアプリを開発しています。 サンドボックス環境ではきちんとトークンが取得できるのですが、プロダクション環境(本番環境)ではトークンが取得できず、困っております。 具体的には、Evernoteのサイト(https://dev.evernote.com/intl/jp/doc/start/javascript.php)からリンクを貼られていたサンプルコード(https://github.com/evernote/phonegap-example/blob/master/HelloWorld/www/js/index.js)をほぼそのまま流用しています。 サンドボックス環境では、トークンが取得できるのですが、プロダクション環境ではそれができません。 具体的には、ユーザー名とパスワードを入力する画面が現れ、承認ボタンを押すことができるのですが、その後、添付の画面に移り、結局トークンが取得することができません。 サンドボックス環境からプロダクション環境に移るに当たり変更したことは、evernotehostnameを、「https://sandbox.evernote.com」から「http://www.evernote.com」に変更しただけです。 サンドボックス環境では動くにもかかわらず、本番環境では動かず、困っております。2つは全く同じ環境だと思っていたのですが、何かが違うのでしょうか。 もし、改善案がお分かりの方がいらっしゃったら、情報提供いただけないでしょうか。 よろしくお願い申し上げます。
  7. Hello friends, After some efforts, integration of Evernote functionalities like synchronization, add notes, etc in our Spring-MVC project.. For that, I am authenticating the user with Scribe and saving the access-token, noteStoreURL(Why this I don't know) in the Database. But if an user decides to discontinue our app linking with evernote, then I would like to de-authorize the app for the user. How can I do that with access-token and in Java. Any ideas? I couldn't find any code which would help me do this. Thank you.
  8. Hello friends, I am working on a Java project in which we would wish to provide Evernote functionality for our app in which we could sync notes, attachments, etc to & fro Evernote. For this to work, I would like to authenticate against Evernote server and then persist the tokens in our database so we can provide services even when user is not logged into Evernote. To achieve this, I have added Scribe library and Evernote java SDK in POM.xml. Unfortunately, I am unable to find any examples of how is the mechanism to authenticate against the server and then which tokens are sent from evernote, which ones are for future usage. I am unable to find documentation for the same. I have some code which worked with a developer token, and only a patch of OAuthService. Can someone help me the authentication mechanism and which tokens to save and later consume? Please note, I am using Spring-MVC as a platform. Developer token code : EvernoteAuth evernoteAuth = new EvernoteAuth(EvernoteService.SANDBOX, AUTH_TOKEN); ClientFactory factory = new ClientFactory(evernoteAuth); userStore = factory.createUserStoreClient(); boolean versionOk = userStore.checkVersion("Evernote EDAMDemo (Java)", com.evernote.edam.userstore.Constants.EDAM_VERSION_MAJOR, com.evernote.edam.userstore.Constants.EDAM_VERSION_MINOR); if (!versionOk) { System.err.println("Incompatible Evernote client protocol version"); System.exit(1); } // Set up the NoteStore client noteStore = factory.createNoteStoreClient(); System.out.println("Listing notes:"); // First, get a list of all notebooks List<Notebook> notebooks = noteStore.listNotebooks(); for (Notebook notebook : notebooks) { System.out.println("Notebook: " + notebook.getName()); // Next, search for the first 100 notes in this notebook, ordering // by creation date NoteFilter filter = new NoteFilter(); filter.setNotebookGuid(notebook.getGuid()); filter.setOrder(NoteSortOrder.CREATED.getValue()); filter.setAscending(true); NoteList noteList = noteStore.findNotes(filter, 0, 100); List<Note> notes = noteList.getNotes(); for (Note note : notes) { System.out.println(" * " + note.getTitle()); } } System.out.println(); Authentication code : @Override public void checkOutEverNote() throws Exception { OAuthService service = new ServiceBuilder() .provider(EvernoteApi.Sandbox.class) .apiKey(CLIENT_KEY) .apiSecret(CLIENT_SECRET) .callback("http://localhost:8080/recievetoken") .build(); Token requestToken = service.getRequestToken(); String authUrl = service.getAuthorizationUrl(requestToken); }
  9. I am trying to make an application that accesses and modifies my own notes. It works in the sandbox, but I don't want to set up a full OAuth application just for this purpose. Is there any way for me to access my own notes with the API without using OAuth?
  10. Hello there, we use Evernote Oauth in our app and we have a lot of contacting us about forgotten Evernote passwords when they try to login to Evernote using Oauth. The problem is your login screen: There is no "Forgot password?" button/link available which users could use to retrieve/reset their forgotten password. Could you consider adding such a button/link to this screen?
  11. I'm trying to build a Rails application, but not sure how to get started. Previously, I've already created a simple Sinatra app that successfully connected to the Evernote API (and helped me win a hackathon, yay!) by using the Quick Start Guide. However, now that I'm trying to build a more robust application using Rails, I'm quickly hitting a wall. My main questions: Where do evernote_config.rb and en_oauth.rb belong within the Rails app?Is there still a need for a "require" statement or does the gem take care of most of the work?This looks very similar to the config/evernote.yml file, does the yaml file replace this code?Also, I want to note that I am aware of the sample RoR app that Kentaro manages, but while that mitigates some issues, it doesn't resolve my core problems. In particular, I remember being told to create a custom Model, but the model folder is empty so there is no example of how this can be done.There are multiple controllers, note_store, user_store, evernote, etc. Which one(s) are essential to get started?Is there documentation somewhere which outlines what the other files do? There doesn't seem to be a lot of comments in the code.What "@code = <<-CODE" doing? The code that it wraps seems to be valid ruby, so why not just leave it as that?Why do the various controllers not line up with any of the views? Not to mention, why are none of controllers connected to a model?Thanks for all your help!
  12. I've been trying to authenticate with oauth and I always get that error. I've been trying with my own code and with the plain url in the browser provided in the documentation: https://sandbox.evernote.com/oauth?oauth_callback=http://www.foo.com&oauth_consumer_key=sample-api-key-4121&oauth_nonce=3166905818410889691&oauth_signature=T0+xCYjTiyz7GZiElg1uQaHGQ6I=&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1429565574&oauth_version=1.0 Any hints?
  13. Hello friends, I am working on integrating Evernote with our webapp which is Spring-MVC based. The main purpose I have is the user can sync data between Evernote and our webapp. Now, to achieve this, I must connect and authenticate with Evernote. To achieve this, I am unable to find any Java based samples. I only found https://github.com/evernote/evernote-sdk-java/blob/master/sample/oauth/src/main/webapp/index.jsp , which is a JSP file. I don't even understand why the developers today are putting Java code inside JSP. It's not even recommended. I don't want to use that approach and whenever I look for some OAuth code, I can only find only portions of code posted by other users like https://discussion.evernote.com/topic/32566-oauth-and-java-some-help-needed/ Is there anyone out there who has some useful code with Java, and suitable for Spring environment where I can call methods in Controller and authenticate, and after redirect I can process data. These are the tokens I have, developer token, NoteStore URL, Consumer Key, Consumer Secret. Here is my code till now : Controller :@Controllerpublic class EverNoteController extends MasterController{ @RequestMapping(value = "/tryevernote") public String tryEverNote() throws Exception { this.localEvernoteService.tryEverNote(); return "redirect:/dashboard"; }}Service Layer :@Service@Transactionalpublic class LocalEvernoteServiceImpl implements LocalEvernoteService { private UserStoreClient userStore; private NoteStoreClient noteStore; private String newNoteGuid; @Override public void tryEverNote() throws Exception{ EvernoteAuth evernoteAuth = new EvernoteAuth(EvernoteService.SANDBOX, AUTH_TOKEN); ClientFactory factory = new ClientFactory(evernoteAuth); userStore = factory.createUserStoreClient(); boolean versionOk = userStore.checkVersion("Evernote EDAMDemo (Java)", com.evernote.edam.userstore.Constants.EDAM_VERSION_MAJOR, com.evernote.edam.userstore.Constants.EDAM_VERSION_MINOR); if (!versionOk) { System.err.println("Incompatible Evernote client protocol version"); System.exit(1); } // Set up the NoteStore client noteStore = factory.createNoteStoreClient(); System.out.println("Listing notes:"); // First, get a list of all notebooks List<Notebook> notebooks = noteStore.listNotebooks(); for (Notebook notebook : notebooks) { System.out.println("Notebook: " + notebook.getName()); // Next, search for the first 100 notes in this notebook, ordering // by creation date NoteFilter filter = new NoteFilter(); filter.setNotebookGuid(notebook.getGuid()); filter.setOrder(NoteSortOrder.CREATED.getValue()); filter.setAscending(true); NoteList noteList = noteStore.findNotes(filter, 0, 100); List<Note> notes = noteList.getNotes(); for (Note note : notes) { System.out.println(" * " + note.getTitle()); } } System.out.println(); } @Override public void checkOutEverNote() throws Exception { }}Any help would be appreciated.
  14. I'm trying to write a Rails app that connects to Evernote. I use the official Ruby SDK / gem by Evernote. My controller methods: ------ def evernote client = EvernoteOAuth::Client.new request_token = client.request_token(:oauth_callback => 'https://localhost:3000/connect/evernotecallback') url = request_token.authorize_url session[:evernote_request_token] = request_token.to_yaml redirect_to url end def evernotecallback request_token = YAML.load(session[:evernote_request_token]) access_token = request_token.get_access_token(:oauth_verifier => session[:oauth_verifier]) puts access_token end ------ I have two questions: Why does this line throw an "SSL session wasn't initialized" exception? access_token = request_token.get_access_token(:oauth_verifier => session[:oauth_verifier]) I have setup ssl on localhost using this guide:https://gist.github.com/trcarden/3295935 Am I storing the request_token object correctly in the session or is there a better way? Thanks! :-)
  15. Hello! I am just beginning to play with the ruby gem to get access to the Evernote API and with Sinatra everything is working. However when I try it with rails. The oauth_callback is not working after granting access. I go into evernote instead of going to my callback url. However, the url when I go into evernote seems kind of strange. https://sandbox.evernote.com/Home.action?%7B:oauth_callback=> With all the parameters and everything I need for the callback url at the end. Has anyone here had the same problem? Thanks!
  16. Hi guys. I'm really tired with Oauth process in Evernote, please, help me. I'm using C# SDK. I tried to connect to Evernote with different ways and still got no result: 1) When this code comes to AuthenticateToEvernote() it returns NullReferenceException. ENSession.SetSharedSessionConsumerKey(Globals.EvernoteClientId, Globals.EvernoteClientSecret, "https://sandbox.evernote.com"); if (ENSession.SharedSession.IsAuthenticated == false) { ENSession.SharedSession.AuthenticateToEvernote(); }2) This way I'm getting NullReferenceException when I'm trying to get Credentials - it doesn't open the window for Authorization - so, Oauth process is failed. Sometimes I don't recieve request token also. var EvernoteAuthorizer = new EvernoteAuthorizer( "https://sandbox.evernote.com", Globals.EvernoteClientId, Globals.EvernoteClientSecret); var requestToken = EvernoteAuthorizer.GetRequestToken("https://localhost:44300/test/test"); Session["RequestToken"] = requestToken; var callForwardUrl = EvernoteAuthorizer.BuildAuthorizeUrl(requestToken); var credentials = EvernoteAuthorizer.ParseAccessToken( Request.QueryString["oauth_verifier"], Session["RequestToken"] as RequestToken); var noteStoreUrl = credentials.NotebookUrl; var noteStoreTransport = new THttpClient(new Uri(noteStoreUrl)); var noteStoreProtocol = new TBinaryProtocol(noteStoreTransport); var noteStore = new NoteStore.Client(noteStoreProtocol); List<Notebook> notebooks = noteStore.listNotebooks(credentials.AuthToken);3) Here I'm getting oauthToken from oauth.Authorize(), but NoteStoreUrl is null. So I can't do something after. EvernoteOAuth oauth = new EvernoteOAuth(EvernoteOAuth.HostService.Sandbox, Globals.EvernoteClientId, Globals.EvernoteClientSecret);bool isEnded = false; Thread th = new Thread(() => { oauth.Authorize(); isEnded = true; }); th.SetApartmentState(ApartmentState.STA); th.Start();//... Some redirecting code here... var noteStoreUrl = oauth.NoteStoreUrl; var noteStoreTransport = new THttpClient(new Uri(noteStoreUrl)); var noteStoreProtocol = new TBinaryProtocol(noteStoreTransport); var noteStore = new NoteStore.Client(noteStoreProtocol); List<Notebook> notebooks = noteStore.listNotebooks(authToken);Please, help me. I really have no idea why that authorization is not working, any of these.
  17. hi. I would like to ask questions about the evernote oauth Development language is C #. And to develop a desktop application. I would like to develop through the non-api urI. ex)https://sandbox.evernote.com/Home.action?edam/user?&oauth_consumer_key=myconsumer_key&oauth_nonce=3166905818410889691&oauth_signature=T0+xCYjTiyz7GZiElg1uQaHGQ6I=&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1429565574&oauth_version=1.0#b=59997892-e8c2-49e1-97fa-b298f8d0987c&ses=4&sh=1&sds=3&The connection to the address. Then if you do not know whether the sign where the token is returned. googledrive and dropbox is using the Forms.WebBrowser It helps return the token to the document. Thank you give passing evernote know how the return value is going. To ask even one kinds of matches that do not need to use a callback oauth. Everybody being good day
  18. oAuth Confusion...

    So I'm working on a project for someone. I need to be able to read from the account. They will be hosting the app I'm writing in PHP/Python...unsure yet. I'm looking at the php SDK for evernote and they have a key secret but when I go to get an API I just get a huge long string of characters. So I'm a bit confused. https://sandbox.evernote.com/api/DeveloperToken.action is where I'm going to get the long string. Also I'm a little cloudy about the whole oAuth thing when I'm the account owner. I know that oAuth is good for allowing other people to authenticate your application but I'm the owner of the account...why do I need to oAuth to my own account. Any help appreciated.
  19. Hi, Using the javascipt sdk I did all the authentication using a basic account's credentials and got the final Oauth_token and NoteStoreUrl when I try to access the function findNotesMetadata or do a basic search I get the following error. Error - {"errorCode":3,"parameter":"authenticationToken"} var filter = new NoteFilter();filter.ascending = true;filter.notebookGuid = '1aa3a7cf-9245-41ee-a766-6d2f1908765'; ////(Modified got using noteStore.listNotebooks function ) var rspec = new NotesMetadataResultSpec();rspec.includeTitle = true;rspec.includeNotebookGuid = true; noteStore.findNotesMetadata(authenticationToken, filter, 0, 100, rspec, function (notes) {var data = {}data.id = JSON.stringify(notes)console.log(data);},function onerror(error) {console.log('Error- ' + JSON.stringify(error));}); Could some one please let me know if event a simple search is not allowed using a basic account. Thanks and Regards,Christwin
  20. Hey all, I'm rather new to oAuth and I need to make a non-'web application' with the evernote API. Sadly all the information I seem to be able to find on oAuth at evernote is about web applications (which makes use of a return url to send the authentication key) Can anyone please explain to me how I can make my application authenticate on evernote without using a return url? Kind regards, WvD p.s. I'm using python for the job
  21. Hello, I try to connect to evernote with the JS SDK, I try to follow the example so my code looks like this right now: var hostName = "http://sandbox.evernote.com"; var options,oauth; options = { consumerKey: "consumer_key", consumerSecret: "consumer_secret", callbackUrl : "https://evernoteflashcard.parseapp.com", signatureMethod : "HMAC-SHA1", }; oauth = OAuth(options); oauth.request({'method': 'GET', 'url': hostName + '/oauth', 'success': function(data){ alert("Succes:"+data.text); }, 'failure': function(data){ alert("Failure:"+data.text); }});But first of all does the call always succeed(even when I insert wrong consumer key and secret), but the data is empty I dont get the oauth_token and oauth_token_secret back. I really dont know why, hopefully some of you can help me
  22. hi, Mr. , Ms. I wonder if there is a way to set a webhook based on authorized users using Evernote API? Now I have to request a form to Evernote to get one webhook for my APP. But If there is only one webhook for my APP, then all authorized users' activity will notify my APP, but my APP does not know who to notify. Best Regards, Thanks. (The following is Chinese) 您好, 请问一下,注册 webhook 的时候,能否使用 Evernote API 来分别对不同授权的用户设置 不同的 webhook 呢(当然主域名是一样的)? 因为想做到的是: 不同的用户授权之后会使用不同的 webhook来接收通知。 否则,所有授权的用户的操作,会把通知发到同一个地方,自己开发的服务端不知道这条通知是该让哪些人看到。 祝好~
  23. The instructions I found at https://dev.evernote.com/doc/articles/authentication.phpprovide authentication at the user level. How do I authenticate my appication to a business account. IE. so that my application displays in the Admin console of Evernote business per the attached screen shot? Also, per the second attached screenshot, why are integrations not available in the sandbox admin console? Thank you.
  24. Hi, On my server i have already implemented PHP oauth with facebook,twitter and linkedin. So there is no option for me to install PHP OAuth Extension. As when i installed the PHP OAuth Extension on my server the above services stoppped working. Is there working example or way to implement evernote with the oauth. I tried tgus example http://www.yodelay.com/development/php-evernote-api-oauth-google-code/ But this example has lot of errors and does not seems to be working for me .
  25. Hello... any one there...??? I want to make application that create note using evernote php sdk api. but when I run sample/client it create note automatically but i want authaunticate user first then create note in their account but while running code in sample/oauth it gives error The PHP OAuth Extension is not installed . I tried every possible solution from web but nor working for me... can you give me introduction to install sdk?? thanks..