// Use this for initialization IEnumerator Start() { var trello = new Trello.Trello("YOUR - KEY", "YOUR - TOKEN"); // Async, do not block yield return(trello.populateBoards()); trello.setCurrentBoard("Your Game"); // Async, do not block yield return(trello.populateLists()); trello.setCurrentList("Achievements"); var card = trello.newCard(); card.name = "Unity Test"; card.desc = "Description"; card.due = "11/12/2014"; yield return(trello.uploadCard(card)); // You can use the helper method to upload exceptions with relevant data try { throw new UnityException("Testing"); } catch (UnityException e) { trello.uploadExceptionCard(e); } }
public static Trello GetTrello() { if (trello == null) { trello = new Trello(); } return(trello); }
private void Form1_Load(object sender, EventArgs e) { panel6.AutoScroll = true; trello = Trello.GetTrello(); if (trello.getBoards().Count > 0) { DrawRows(trello.getBoards()[0]); } else { string color = "Blue"; var board = trello.addBoard("No Name Board", color); id = board.ID; trello.addRow(board, "To Do"); trello.addRow(board, "Doing"); trello.addRow(board, "Done"); DrawRows(board); panel2.BackColor = Color.FromName(color); } panel2.AutoScroll = true; }
private static void LoadRow(int id) { rows.AddRange(Trello.GetTrello().getRowsForBoard(id)); }