This repository has been archived by the owner on Dec 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
QuickStart
Tadaya Tsuyukubo edited this page Jul 15, 2014
·
5 revisions
- 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
- Place "evernote-rest-webapp.war" to a directory.
- Create "application.properties" file in same directory
- 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]
- Start Application
$ java -jar evernote-rest-webapp.war
- 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