Ejemplo n.º 1
0
 protected void Button11_Click(object sender, EventArgs e)
 {
     var youDao = new YDWebConsumer(YDAuthBaseInfo.ServiceDescription, this.TokenManager);
     var bookApi = new YDNoteBookAPI(youDao, this.AccessToken);
     var books = bookApi.GetAllNoteBooks();
     var notes = bookApi.GetNotesInBook(books[0].path);
     var noteApi = new YDNoteAPI(youDao, this.AccessToken);
     noteApi.DeleteNote(notes[0]);
 }
Ejemplo n.º 2
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            var youDao = new YDWebConsumer(YDAuthBaseInfo.ServiceDescription, this.TokenManager);
            var api = new YDNoteBookAPI(youDao, this.AccessToken);
            var noteBooks = api.GetAllNoteBooks();
            var noteBook = noteBooks[1];

            var notes = api.GetNotesInBook(noteBook.path);
            var note = notes[0];
            this.lbl.Text = note.content;
        }