Back to Blog
Evernote tutorial 20225/30/2023 In our example this is a list of guid for all notes with the same title or the same substring in the title. See the documentation for further explanations. This function returns a list of notes (notes.notes). Given the 2 data structures filter and resultspec we can then call (thToken, filter, 0, 250, resultSpec). If we would like to get the title of the note too, we would define: resultSpec.includeTitle = True. If we set no fields, like in our code above, only the guid of a note is returned. Here we could define all the fields we want returned for a note. We create the data structure NotesMetadataResultSpec. Resultspec: We also have to define the amount of data returned for a note. Accepts the full search grammar documented in the Evernote API Overview"). words is the most important one (from the documentation: "If present, a search query string that will filter the set of notes to be returned. We create the data structure NoteFilter and set various fields. Notes = įilter: To find a note by title we have to set a filter. Notes = (thToken, filter, 0, 250, resultSpec) We code the method getNoteByTitle of our class EvernoteStore(). Hence we first have to find the guid of the note (there is no function like getNoteByTitle). This function uses the guid (the unique identifier of a note). In the NoteStore module there is a function getNote. We store a subset of the tag data in the instance variable noteBookTags. It returns a list with this data structure. It calls the function listTagsByNotebook of the module NoteStore. GetNoteBookTags: This is a method of our class EvernoteStore(). all tags of a notebook: def getNoteBookTags(self): This method calls setNoteBookGuid() which sets the instance variable noteBookGuid. In the code above we set the notebook by name with setNotebook(). We need the guid of a notebook if we want to restrict our work (e.g. One list with all notebook name and a corresponding list with all guid (the unique identifier). In Part 1 of the tutorial we used the method getNoteBooksList to retrieve a dict with 2 lists of all notebooks.
0 Comments
Read More
Leave a Reply. |