我想知道是否可以从 Evernote SDK 访问用户根据其 URL 公开共享的笔记?
显然,您可以在没有API的情况下拉取页面本身,并且您无法以任何方式写入它,但我想知道是否可以通过API获取只读副本,以便您可以获得注释数据无需尝试不可靠的屏幕抓取。
最佳答案
是的,可以。共享笔记 URL 的格式为: hostname/shard/shardId/notGUID/noteKey 。
- 您可以解析此 URL,以分离出所有字段。然后,使用authenticateToSharedNote API。
然后您可以使用 AuthenticationResult创建笔记存储:
sharedNoteStoreUrl = AuthenticationResult.noteStoreURL;
TBinaryProtocol sharedNoteStoreProt = new TBinaryProtocol(new THttpClient(sharedNoteStoreUrl));
NoteStore.Client sharedNoteStore = new NoteStore.Client(sharedNoteStoreProt,sharedNoteStoreProt);
然后您可以使用 getNote 访问该注释。 API,使用步骤 2 中的身份验证 token 。
关于evernote - 是否可以通过 Evernote SDK 访问共享笔记?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16291369/