Jump to content

Search the Community

Showing results for tags 'java'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • Community Announcements
    • Evernote General Discussions
    • Evernote Integrations
    • Evernote Betas
    • Evernote API Discussion
  • FAQ's: Best Answers
    • FAQ's: Best Answers
  • Possible Bugs/Technical Issues
    • General Technical Issues
    • Evernote Business
    • Evernote for Android
    • Evernote for iOS
    • Evernote for Mac
    • Evernote for Windows
    • Web Client
    • Evernote Product Suite
  • Product Feedback/Feature Requests
    • General Feature Requests
    • Evernote Business
    • Evernote for Android
    • Evernote for iOS
    • Evernote for Mac
    • Evernote for Windows
    • Evernote Web Client
    • Evernote Product Suite
  • International Forums
    • Japanese Discussions
    • Brazilian Portuguese Discussions
    • Discussions in Spanish
    • Korean Discussions
    • Traditional Chinese Discussions
  • Evernote Forum Archives

Blogs

There are no results to display.

There are no results to display.

Categories

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Subscription

Found 6 results

  1. 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); }
  2. 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.
  3. I just noticed while updating to v5.8.11.8117 that the updater/installer ran the Java Quick Starter service (jqs.exe). I thought most everyone stopped using Java a couple years ago due to some malware. Can Evernote be updated if I disable this service? (I'm running Win XP.)
  4. On my Evernote application all attachments and check boxes have been replaced by "Blocked Plug In" messages. I am unable to open any attached files on a note. On Evernote web and IPad, all attachments and check boxes are visible and normal. This happened after the Mac Security update 2014-003 was installed. How can I fix this problem and make attachments and check boxes visible again on the Evernote application so that I cn open attachments and check off items on my "To Do" list? In the past I was able to fix this by replacing the Xprotect.meta. list file. This fix did not work this time. Macbook Pro 13" mid 2012 build OS X 10.8.5 Evernote for Mac 5.2.2 Java Applet Plug In: Java 7 Update 67
  5. Hello I am using Scribe for Oauth and I am trying get a requst token but I keep getting this error. I am not sure what the issue is. Any suggestions or leads? Evernote's OAuth Workflowobtaining request token from https://sandbox.evernote.com/oauthsetting oauth_callback to https://sandbox.evernote.comgenerating signature...using base64 encoder: DatatypeConverterbase string is: POST&https%3A%2F%2Fsandbox.evernote.com&oauth_callback%3Dhttps%253A%252F%252Fsandbox.evernote.com%26oauth_consumer_key%3D%2520********%26oauth_nonce%3D**********%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1374600743%26oauth_version%3D1.0signature is: ************=appended additional OAuth parameters: { oauth_callback -> https://sandbox.evernote.com , oauth_signature -> **********= , oauth_version -> 1.0 , oauth_nonce -> *********** , oauth_signature_method -> HMAC-SHA1 , oauth_consumer_key -> ******** , oauth_timestamp -> 1374600743 }using Http Header signaturesending request... Exception in thread "main" org.scribe.exceptions.OAuthConnectionException: There was a problem while creating a connection to the remote service.at org.scribe.model.Request.send(Request.java:70)at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:59)at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:40)at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:45)at com.mycompany.app.App.main(App.java:59)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:606)at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)Caused by: java.net.ConnectException: Connection timed out: connectat java.net.DualStackPlainSocketImpl.connect0(Native Method)at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)at java.net.Socket.connect(Socket.java:579)at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)at sun.net.NetworkClient.doConnect(NetworkClient.java:180)at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:270)at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:327)at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1090)at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)at org.scribe.model.Request.addBody(Request.java:136)at org.scribe.model.Request.doSend(Request.java:114)at org.scribe.model.Request.send(Request.java:66)... 9 more
  6. I use Moodle for online teaching, and after upgrading to Safari 6 (as part of my Mountain Lion upgrade) I found that I could no longer upload files to create download links for my students. I started receiving a JSON string error. To isolate the problem, I turned off half of my extensions, then the other half, etc. etc., and replicated the problem until I isolated a single extension that created the problem - and sadly, it was Evernote Web Clipper 5.6. I'm on a 2009 15" MacBook Pro running OS X 10.8. Anyone else having the same problem? Any fixes?
×
×
  • Create New...