public async Task <List <TrelloRoot> > GetAllBoards() { string page = $"https://api.trello.com/1/members/me/boards?key=7d7a36afe44b9e5fd79ae2c2d03b319e&token=98b5e984ee3607b1718c52978038a78927fb9bd8f5edb1c031de7ee32d3035e9"; var ts = new TrelloService(); var result = await ts.Get(page); return(JsonConvert.DeserializeObject <List <TrelloRoot> >(result)); }
public async Task <string> CreateAcardOnAlist(string listId, string cardName, string cardDescription) { //inte hårdkoda token och key-id string page = $"https://api.trello.com/1/cards?name={cardName}&desc={cardDescription}&idList={listId}&key=7d7a36afe44b9e5fd79ae2c2d03b319e&token=98b5e984ee3607b1718c52978038a78927fb9bd8f5edb1c031de7ee32d3035e9"; var ts = new TrelloService(); string result = await ts.Post(page); return(result); }
public async Task <List <TrelloList> > GetAllListsForBoard(string boardId) { List <TrelloList> list = new List <TrelloList>(); //slänga in boardId i page så den inte är hårdkodad string page = $"https://api.trello.com/1/boards/5c5bec8b2e25ff7be13fb912/lists?cards=none&card_fields=all&filter=open&fields=all&key=7d7a36afe44b9e5fd79ae2c2d03b319e&token=98b5e984ee3607b1718c52978038a78927fb9bd8f5edb1c031de7ee32d3035e9"; var ts = new TrelloService(); var result = await ts.Get(page); return(JsonConvert.DeserializeObject <List <TrelloList> >(result)); }
public void get_all_boards() { var ts = new TrelloService(); List <TrelloRoot> result = ts.GetAllBoards().Result; }
public void add_a_post_to_a_specific_list() { var ts = new TrelloService(); ts.CreateAcardOnAlist("5c5bec8b2e25ff7be13fb913", "en post", "beskrivning").Wait(); }
public void get_all_lists_for_a_specific_board() { var ts = new TrelloService(); List <TrelloList> result = ts.GetAllListsForBoard("5835f3cff7ac11db7d03192c").Result; }