Jump to content
Ghanshyam Rajpurohit

Evernote Python sdk Dose not resturns list of tag names for .getNote()

Recommended Posts

As i woring on python evernote api.
devloping thirparty application

I tried to retrive the note with content. working on sandbox.

note_store = client.get_note_store()searchfilter = NoteStoreTypes.NoteFilter()searchfilter.order = Types.NoteSortOrder.UPDATEDsearchfilter.ascending = Falseresult_spec = NotesMetadataResultSpec(includeTitle=True,includeTagGuids=True)notes = note_store.findNotesMetadata(token, searchfilter, 0, 1000, result_spec)notedata = note_store.getNote(token, notes.notes[5].guid, True, False, True, True)

And result data given by the above code .

Note(contentHash='\xfc\r\x8bc\n<b\xe3\x98\x04\xd5qu\xe9B\xfa', updated=1430290632000, created=1430290619000, deleted=None, contentLength=162, title='Test note new ley created', notebookGuid='66495718-72a1-411f-96e6-307e9abcb78c', content='<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE en-note SYSTEM"http://xml.evernote.com/pub/enml2.dtd">\n<en-note><div>hey there<br clear="none"/></div></en-note>', tagNames=None, updateSequenceNum=153, tagGuids=['73f31467-2ab1-4014-a5fb-650e97348d1a', '0abaa885-d62a-43ba-8672-71efaa8ccede'], active=True, attributes=NoteAttributes(lastEditorId=None, placeName=None, sourceURL=None, classifications=None, creatorId=None, author='Ghanshyam Rajpurohit', reminderTime=None, altitude=None, reminderOrder=None, shareDate=None, reminderDoneTime=None, longitude=None, lastEditedBy=None, source=None, applicationData=None, sourceApplication=None, latitude=None, contentClass=None, subjectDate=None), guid='6446f0bd-70c4-4ec2-91cc-a2109fe084ed', resources=None)

As here it was 

tagGuids=['73f31467-2ab1-4014-a5fb-650e97348d1a', '0abaa885-d62a-43ba-8672-71efaa8ccede']

but no Tag Names


m I doing something wrong . or i need to retrive the tagnames parsing these  tagGuids.



Share this post

Link to post

I have need to figure out this way.
based on

tagGuids=['73f31467-2ab1-4014-a5fb-650e97348d1a', '0abaa885-d62a-43ba-8672-71efaa8ccede']

I  need to write another piece

for tagguid in notobj.tagGuids:    tagobject = note_store.getTag(authtoken, tagguid)    notobj.tagNames.append(tagobject)

:mellow:^_^-_-<_<  no reply here.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...