* - you can copy it straight into your application.
*/
public EDAMDemo(String token) throws Exception {
// Set up the UserStore client and check that we can speak to the server
EvernoteAuth evernoteAuth = new EvernoteAuth(EvernoteService.SANDBOX, 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();
}