Juriaan

Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. Imports System Imports EvernoteSDK Imports System.IO Imports System.Collections.Generic Imports EvernoteSDK.Advanced Public class main dim myResultsList As List(Of ENSessionFindNotesResult) ENSession.SetSharedSessionConsumerKey("KEY", "SECRET") If ENSession.SharedSession.IsAuthenticated = False Then ENSession.SharedSession.AuthenticateToEvernote() myResultsList = ENSession.SharedSession.FindNotes(ENNoteSearch.NoteSearch("text to find"), Nothing, ENSession.SearchScope.All, ENSession.SortOrder.RecentlyUpdated, 500) ' Given a NoteRef instance, download that note. Dim myDownloadedNote As ENNote = ENSession.SharedSession.DownloadNote(myResultsList(0).NoteRef) For i As Integer = 0 To myDownloadedNote.TagNames.Count - 1 Note_tags_txt.Text = Note_tags_txt.Text + " " + myDownloadedNote.TagNames.Item(i) Next end class On Stackoverflow I was informed to use "GetNoteTagNames" instead, but without proper example in vb.net that comment sounded a bit cryptic, since I cannot find that command. I seem to be able to do all other operations on the notes just fine, such as getting the resources, the title, the content, the notebook name, and even searching note. It is just the tag name I cannot seem to be able to retrieve... Could someone post a vb.net example on how to get the tags of a note given the note GUID?