Jump to content

kernelfreak

Level 1
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About kernelfreak

  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$findNotes_result.read(NoteStore.java:11802) at com.evernote.edam.notestore.NoteStore$Client.recv_findNotes(NoteStore.java:1153) at com.evernote.edam.notestore.NoteStore$Client.findNotes(NoteStore.java:1125) at com.evernote.clients.NoteStoreClient.findNotes(NoteStoreClient.java:324) at com.tooltank.spring.service.EverNoteServiceImpl.networkOperationForPullingEvernote(EverNoteServiceImpl.java:242) at com.tooltank.spring.service.EverNoteServiceImpl.pushEvernotesToPersonalNotes(EverNoteServiceImpl.java:208) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) 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. 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); }
×
×
  • Create New...