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]);
 }
 protected void Button10_Click(object sender, EventArgs e)
 {
     var youDao = new YDWebConsumer(YDAuthBaseInfo.ServiceDescription, this.TokenManager);
     var noteApi = new YDNoteAPI(youDao,this.AccessToken);
     var note = noteApi.GetNote("/8F970E0A60B743408C9F4B85B2FC081E/CC13776676444A3AA7416465266AE6BE");
     var noteBookApi = new YDNoteBookAPI(youDao, this.AccessToken);
     var books = noteBookApi.GetAllNoteBooks();
     this.lbl.Text = noteApi.MoveNote(note, books[0]).path;
 }
        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;
        }
 protected void Button5_Click(object sender, EventArgs e)
 {
     var youDao = new YDWebConsumer(YDAuthBaseInfo.ServiceDescription, this.TokenManager);
     var api = new YDNoteBookAPI(youDao, this.AccessToken);
     var books = api.GetAllNoteBooks();
     api.DeleteNoteBook(books[1].path);
     this.lbl.Text = "DELETE SUCCESS";
 }
        protected void Button2_Click(object sender, EventArgs e)
        {
            var youDao = new YDWebConsumer(YDAuthBaseInfo.ServiceDescription, this.TokenManager);
            var api = new YDNoteBookAPI(youDao,this.AccessToken);
            var books = api.GetAllNoteBooks();

            foreach (var ydNoteBook in books)
            {
                this.lbl.Text += ydNoteBook.path+"<\br>";
            }
        }