- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我想通过我们的应用程序(图像或文本或两者)将一些数据存储在“EverNote”中。
我用谷歌搜索,我得到了一些指导,比如 EverNote SDK,我也得到了 EverNoteCounter 示例(当我运行它时,当我单击 getCount 按钮时,它会显示一条警告消息“无法验证”)。我还生成了开发人员 token 。
但我无法创建 consumerKey、consumerSecret。而且我也没有找到如何将我们的数据从我们的应用程序存储到 evernote。
我得到了一些链接,例如 this一个
但是当我浏览那个链接时它说(这个 URL 不支持 HTTP 方法 GET)
我能够通过 EVERNOTE 进行身份验证,并且能够获得该帐户中的笔记本数量。
我在我的应用程序中使用了 sqllite。我正在为图像使用一个文件夹。 Sqllite 有图像链接信息。
如何存储数据。
我使用以下代码进行身份验证并获取计数
- (IBAction)retrieveUserNameAndNoteCount:(id)sender
{
// Create local reference to shared session singleton
EvernoteSession *session = [EvernoteSession sharedSession];
[session authenticateWithViewController:self completionHandler:^(NSError *error) {
// Authentication response is handled in this block
if (error || !session.isAuthenticated) {
// Either we couldn't authenticate or something else went wrong - inform the user
if (error) {
NSLog(@"Error authenticating with Evernote service: %@", error);
}
if (!session.isAuthenticated) {
NSLog(@"User could not be authenticated.");
}
UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"Error"
message:@"Could not authenticate"
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil] autorelease];
[alert show];
} else {
// We're authenticated!
EvernoteUserStore *userStore = [EvernoteUserStore userStore];
// Retrieve the authenticated user as an EDAMUser instance
[userStore getUserWithSuccess:^(EDAMUser *user) {
// Set usernameField (UILabel) text value to username
[usernameField setText:[user username]];
// Retrieve total note count and display it
[self countAllNotesAndSetTextField];
} failure:^(NSError *error) {
NSLog(@"Error retrieving authenticated user: %@", error);
}];
}
}];
}
- (void)countAllNotesAndSetTextField
{
// Allow access to this variable within the block context below (using __block keyword)
__block int noteCount = 0;
EvernoteNoteStore *noteStore = [EvernoteNoteStore noteStore];
[noteStore listNotebooksWithSuccess:^(NSArray *notebooks) {
for (EDAMNotebook *notebook in notebooks) {
if ([notebook guid]) {
EDAMNoteFilter *filter = [[EDAMNoteFilter alloc] init];
[filter setNotebookGuid:[notebook guid]];
[noteStore findNoteCountsWithFilter:filter withTrash:NO success:^(EDAMNoteCollectionCounts *counts) {
if (counts) {
// Get note count for the current notebook and add it to the displayed total
NSNumber *notebookCount = (NSNumber *)[[counts notebookCounts] objectForKey:[notebook guid]];
noteCount = noteCount + [notebookCount intValue];
NSString *noteCountString = [NSString stringWithFormat:@"%d", noteCount];
[noteCountField setText:noteCountString];
}
} failure:^(NSError *error) {
NSLog(@"Error while retrieving note counts: %@", error);
}];
}
}
} failure:^(NSError *error) {
NSLog(@"Error while retrieving notebooks: %@", error);
}];
}
请给我建议链接或给我指导
提前致谢
最佳答案
当您只需要访问自己的帐户时,将使用开发者 token 。要获取消费者 key / secret ,请转到此处:http://dev.evernote.com/documentation/cloud/ .
如果您使用的是 iOS,https://github.com/evernote/evernote-sdk-ios有一个示例应用程序,您可以在拥有使用者 key 和 secret 后使用。
一般而言,dev.evernote.com 上有很多信息。
所有 SDK 都位于 https://github.com/evernote
iOS 入门指南:http://blog.evernote.com/tech/2012/05/24/evernote-sdk-integration-ios/
关于iphone - 我想通过我们的应用程序将一些数据存储在 "EverNote"中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14052708/
我对在 Mac 上的 Evernote 应用程序中扩展 Evernote 的功能很感兴趣——这与您在电子表格中添加宏以在每次触发时执行自动功能的方式非常相似。 我知道可以编写其他可以通过 API 与
我正在尝试使用 Evernote API 在新的 Evernote 网络编辑器中生成可编辑笔记的链接。 我已尝试按照 documentation 的建议构建链接还有这个post ,但生成的链接会将我带
在过去的 12 小时里,我们收到了很多传输错误,“HTTP 响应代码:418”。这使得用户数据的同步几乎不可能。 客户端与 API 通信的方式是否有任何变化,还是与周三发布的临时错误有关? 最佳答案
我想在 Emacs/Emacs org 模式下打开 Evernote 笔记链接。 Evernote 笔记链接如下: evernote:///view/52572/s1/8eb24719-30d3-4f
我有一个代码可以使用 evernote sdk 在 evernote 帐户中搜索内容。目前,在用户提供凭据并授权我的应用程序后,我获得了一个帐户的授权 token 。但我不希望用户输入她已经在她的 a
Evernote 的标签不区分大小写,但我无法找到具体说明用于此的排序规则或文化的规范。 标签规范 ( https://dev.evernote.com/doc/reference/Types.htm
我的应用程序会录制音频,然后创建一个 ENNote,并将生成的音频文件作为资源(以当前日期和时间作为标题),然后将此笔记上传到 Evernote。上传完成后,用户已经收到通知。现在我还想显示上传进度。
我下载了EverNote API Xcode项目,但对OCR功能有疑问。借助他们的OCR服务,我可以拍照并在UILabel中显示提取的文本吗? 还是提取出来的文本没有显示给我,而仅用于照片的搜索功能?
我现在正在使用 evernote api 在 iOS 上开发一个应用程序。通过 getNoteContent 函数可以获取笔记的内容,但是如何显示呢?它是 ENML 格式。 我应该从 ENML 中提取
我们最近收到了很多 com.evernote.thrift.transport.TTransportException使用 HTTP 代码 400、429、418。 429 对应于 Too Many
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,
我正在尝试注册一个 evernote webhook。但似乎注册表不起作用。 Evernote webhook 注册表格: 我填写了表格,点击“提交”,但总是得到以下错误响应: {"error":"R
如何使用 Evernote Java SDK 列出当前 Evernote 帐户中垃圾箱的内容?我尝试通过调用 NoteStoreClient 的 findNotes() 方法来列出笔记本“垃圾箱”的内
我正在尝试在 ubuntu 上构建 EverNote API。我下载了 Thrift 库并将 API 文件链接到该库。当我尝试编译 API 时,出现以下错误: /usr/lib/gcc/i486-li
内容的类型对于这个问题来说并不是很重要,但假设我想实现一个允许多个用户协作处理共享列表的(本地移动)购物 list 应用程序。 通常如何实现自动工作(无需明确的用户交互)的同步功能?首选方法是每隔几秒
我想通过我们的应用程序(图像或文本或两者)将一些数据存储在“EverNote”中。 我用谷歌搜索,我得到了一些指导,比如 EverNote SDK,我也得到了 EverNoteCounter 示例(当
当您单击操作栏中的中间图标时,会出现一个下拉菜单: 如何制作其中一个? RelativeLayouts? 最佳答案 希望这篇文章对你有用。 http://www.londatiga.net/it/ho
我正在使用 Evernote API 来创建自定义记事本,并且按照流程,我将 cocoapod 安装在曾经的笔记中,并按照文档 Evernote Documentation 中给出的所有步骤进行操作.
我在使用 iOS evernote SDK 在链接的笔记本中创建笔记时遇到了一些问题。 我试图通过以下方式简单地获取有问题的 noteStore EvernoteNoteStore* noteStor
在您的应用程序数据库中保留(或不保留)Evernote 用户的最佳实践或常用方法是什么? 我应该创建自己的成员(member)系统并创建与 Evernote 帐户的连接吗? 我应该将 Evernote
我是一名优秀的程序员,十分优秀!