Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i straightly to find specified one EDAMNote/ENNote? #165

Closed
yiwangwuqian opened this issue Jul 2, 2019 · 8 comments
Closed

How can i straightly to find specified one EDAMNote/ENNote? #165

yiwangwuqian opened this issue Jul 2, 2019 · 8 comments

Comments

@yiwangwuqian
Copy link

I just need record note for my reading book,how can i repeatedly update this one note programmatically(point to a particular note in the Evernote service)?

@imougy
Copy link
Contributor

imougy commented Jul 3, 2019

I tag the note with something and then search and get it back. Of course you can get a list of notes.
Here is my code:-

  • (void) findNotesWithSymbol:(NSString*)symbol completion:(ENSessionFindNotesCompletionHandler)completion{
    NSString *searchNotation = [NSString stringWithFormat:@"tag:%@" , symbol];
    [self findNotesWithSearchNotation:searchNotation completion:completion];
    }

  • (void) findNotesWithSearchNotation:(NSString*)searchNotation completion:(ENSessionFindNotesCompletionHandler)completion{
    ENNoteSearch *noteSearch = [ENNoteSearch noteSearchWithSearchString:searchNotation];
    [[ENSession sharedSession] findNotesWithSearch:noteSearch inNotebook:self.stocksLiveNoteBook orScope:ENSessionSearchScopePersonal sortOrder:ENSessionSortOrderRecentlyCreated maxResults:0 completion:^(NSArray *findNotesResults, NSError *findNotesError) {
    completion(findNotesResults, findNotesError);
    }];
    }

@yiwangwuqian
Copy link
Author

I tag the note with something and then search and get it back. Of course you can get a list of notes.
Here is my code:-

  • (void) findNotesWithSymbol:(NSString*)symbol completion:(ENSessionFindNotesCompletionHandler)completion{
    NSString *searchNotation = [NSString stringWithFormat:@"tag:%@" , symbol];
    [self findNotesWithSearchNotation:searchNotation completion:completion];
    }
  • (void) findNotesWithSearchNotation:(NSString*)searchNotation completion:(ENSessionFindNotesCompletionHandler)completion{
    ENNoteSearch *noteSearch = [ENNoteSearch noteSearchWithSearchString:searchNotation];
    [[ENSession sharedSession] findNotesWithSearch:noteSearch inNotebook:self.stocksLiveNoteBook orScope:ENSessionSearchScopePersonal sortOrder:ENSessionSortOrderRecentlyCreated maxResults:0 completion:^(NSArray *findNotesResults, NSError *findNotesError) {
    completion(findNotesResults, findNotesError);
    }];
    }

Thanks for your answer!!! I get the point now.
I have another question:What's the max count of tags created by me?Or there's no limits?

@imougy
Copy link
Contributor

imougy commented Jul 3, 2019

There is no limit. I have very deep integration with my app (Stocks Live on the App Store) and I tag almost 4000 stocks and Evernote is a beast, can handle everything.
Good luck, what is your app?

@mpnow
Copy link

mpnow commented Jul 3, 2019

Actually there are limits to the number of tags in an account. You can see all of Evernote's limits in the "Limits" section here: http://dev.evernote.com/doc/reference/

@imougy
Copy link
Contributor

imougy commented Jul 3, 2019

Actually there are limits to the number of tags in an account. You can see all of Evernote's limits in the "Limits" section here: http://dev.evernote.com/doc/reference/

That is max tag inside one note, if that is the concern, but there is no tag limits for the general service, meaning, if I create a tag per note, this will pass fine, which is a way to find a note like in my previous answer.
Thanks for the heads up btw.

@mpnow
Copy link

mpnow commented Jul 4, 2019

Actually there is a limit for the general service - as of this writing it's 100,000 tags per account. That's a large number, granted, but to be accurate it's not unlimited tags.

@yiwangwuqian
Copy link
Author

Actually there are limits to the number of tags in an account. You can see all of Evernote's limits in the "Limits" section here: http://dev.evernote.com/doc/reference/

That is max tag inside one note, if that is the concern, but there is no tag limits for the general service, meaning, if I create a tag per note, this will pass fine, which is a way to find a note like in my previous answer.
Thanks for the heads up btw.

Thanks for your reply!
Here's our app link:https://apps.apple.com/cn/app/%E6%8E%8C%E9%98%85%E7%B2%BE%E9%80%89/id1447341012

@yiwangwuqian
Copy link
Author

Actually there is a limit for the general service - as of this writing it's 100,000 tags per account. That's a large number, granted, but to be accurate it's not unlimited tags.

Thank you so much!
I think i get the useful information here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants