Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

QuickStart

Tadaya Tsuyukubo edited this page Jul 15, 2014 · 5 revisions

QuickStart

  1. Download application from [HERE],
  • (or you can build from source):
  $ git clone [email protected]:ttddyy/evernote-rest-webapp.git
  $ cd evernote-rest-webapp
  $ mvn package    # war file is generated under target directory
  1. Place "evernote-rest-webapp.war" to a directory.
  2. Create "application.properties" file in same directory
  3. Edit "application.properties" and add:
evernote.consumerKey=[MY_CONSUMER_KEY]
evernote.consumerSecret=[MY_SECRET_KEY]
evernote.environment=SANDBOX
evernote.alwaysUseTokenFromConfig=true
evernote.accessToken=[MY_DEV_ACCESS_TOKEN]
  1. Start Application
$ java -jar evernote-rest-webapp.war
  1. Access endpoints
$ curl -X POST -H "Content-Type: application/json" http://localhost:8080/userStore/getUser
$ curl -X POST -H "Content-Type: application/json" 
       -d '{ "guid":"[NOTE_GUID]", "withContent":true, "withResourcesData":false, 
             "withResourcesRecognition":false, "withResourcesAlternateData":false }' 
       http://localhost:8080/noteStore/getNote
Clone this wiki locally