Пример #1
0
        public async Task CreateACardOnAList(string list, string name, string desc)
        {
            string page = $"https://api.trello.com/1/cards?name={name}&idList={list}&keepFromSource=all&key=66b94baf3e4dfdfa2688852ffdd7b7ef&token=f03995d5b7689ae9811d2f5b23b56ed96042dd7dd1839a6b8247b1a7e12528e9&desc={desc}";

            var trello = new TrelloService();

            var result = await trello.Post(page);
        }
Пример #2
0
        public async Task <ICollection <TrelloRoot> > GetAllListsForBoard(string board)
        {
            string page = $"https://api.trello.com/1/boards/{board}/lists?key=66b94baf3e4dfdfa2688852ffdd7b7ef&token=f03995d5b7689ae9811d2f5b23b56ed96042dd7dd1839a6b8247b1a7e12528e9";

            var trello = new TrelloService();

            var result = await trello.Get(page);

            return(JsonConvert.DeserializeObject <ICollection <TrelloRoot> >(result));
        }
Пример #3
0
        public void add_a_post_to_a_specific_list()
        {
            var ts = new TrelloService();

            ts.CreateACardOnAList("5c5be73a8051492e43e4a1b4", "en post", "beskrivning").Wait();
        }
Пример #4
0
 public void get_all_boards()
 {
     var ts     = new TrelloService();
     var result = ts.GetAllBoards().Result;
 }
Пример #5
0
 public void get_all_lists_for_a_specific_board()
 {
     var ts     = new TrelloService();
     var result = ts.GetAllListsForBoard("5c5be73af778cd0f75e37b5c").Result;
 }