• Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. Hello, We are getting Permission denied when we are trying to read notes from Evernote. How to upgrade key to full-access. Error log EDAMUserException(errorCode:PERMISSION_DENIED, parameter:authenticationToken) at com.evernote.edam.notestore.NoteStore$ at com.evernote.edam.notestore.NoteStore$Client.recv_findNotes( at com.evernote.edam.notestore.NoteStore$Client.findNotes( at com.evernote.clients.NoteStoreClient.findNotes( at com.tooltank.spring.service.EverNoteServiceImpl.networkOperationForPullingEvernote( at com.tooltank.spring.service.EverNoteServiceImpl.pushEvernotesToPersonalNotes( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint( at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation( at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction( at org.springframework.transaction.interceptor.TransactionInterceptor.invoke( at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( at org.springframework.aop.framework.JdkDynamicAopProxy.invoke( at com.sun.proxy.$Proxy149.pushEvernotesToPersonalNotes(Unknown Source) How can I reach developer console on my own so I can do this and check out statistics about my developer account. Still not able to find it. Thank you.
  2. Ended up doing the same after checking out answer on SO. Thank you. :-)
  3. 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.
  4. Hello friends, I am right now working on integrating Evernote note mechanism in our platform. On our platform, I would like to send some information as an Evernote note. Now, because I also have database where the entries are saved, there is primary-key to consider. Our platform is based on Spring-MVC i.e Java. These are the things I am looking for : 1) How can I add primary-key ID(Integer) as an attribute of a note. 2) Next time, when the information needs to be updated, I would like to conduct a search based upon that primary-key. If that is not possible, does Evernote returns a key, then are notes searchable by GUID or some other mechanism which I can call for searching existing notes and successfully retrieve them. Here is the basic code I have so far. As I am just testing in Sandbox, it's still in primitive stage(Java code, not JS, no syntax highlighting available for Java) : try { EvernoteAuth evernoteAuth = new EvernoteAuth(EVERNOTE_SERVICE, evernote.getAccessToken()); NoteStoreClient noteStoreClient = new ClientFactory(evernoteAuth).createNoteStoreClient(); Note note = new Note(); note.setTitle("New title"); String nBody = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; nBody += "<!DOCTYPE en-note SYSTEM \"\">"; nBody += "<en-note>" + "Hello123" + "</en-note>"; note.setContent(nBody); Note savedNote = noteStoreClient.createNote(note); // Does the savedNote here has all attributes which are retrieved from Evernote as well. } Kindly let me know. Thank you.
  5. Evernote Oauth with Java

    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); }