UniTrello is a simplified user interface between Unity and Trello, designed to create a cost-effective solution for managing issues and exception handling in real-time.
UniTrello uses LitJSON under a public domain license.
public string key, token;
Instantiate a Trello link with an assigned key and token.
public Trello trello = new Trello (key, token);
public string errorMessage, public WWW www;
Check and compare an issue type from a given IssueType.
WWW www = new WWW(string url, WWWform form);
while(!www.isDone){
checkWwwStatus("Could not process Trello card.", www);
}
public JSONData boardData;
Download a list of available boards for a user.
//Async
public IEnumerator getBoards() {
yield return populateBoards();
}
public string name;
Set the current board.
string boardName = "Dev Hub";
if(boardName != ""){
setCurrentBoard(boardName);
}
public JSONData listData;
Download available lists for the current board.
//Async
public IEnumerator getLists() {
yield return populateLists();
}
public string name;
Set the current list.
//Async
public IEnumerator getLists() {
string listName = "Bugs";
yield return populateLists();
if(listName != ""){
setCurrentList(listName);
}
}
public JSONData cardData;
Download a list of cards from the current list.
//Async
public IEnumerator getCards() {
yield return populateCards();
}
public string name;
Set the last card created from a current access list.
//Async
public IEnumerator getSetCards() {
yield return populateCards();
setCurrentCard();
}
public TrelloCard;
Create a new Trello card object. This accepts the following options:
string.pos
string.name
string.desc
string.due
string.idList
string.idLabels
string.urlSource
string.fileSource
TrelloCard card = new TrelloCard();
card.pos = "top";
card.name = "My Trello Card";
card.urlSource = "null";
card.idList = currentListId;
card.fileSource = "MyFileUrl.png";
public TrelloCard card;
Create a new Trello card object with a populated list ID.
Trello trello = new Trello(key, token);
var card = trello.newCard();
public TrelloCard card;
Uploads a given TrelloCard object to the Trello servers.
Trello trello = new Trello(key, token);
//Async
public IEnumerator UploadCard() {
yield return trello.populateBoards();
trello.setCurrentBoard("Dev Hub");
yield return trello.populateLists();
trello.setCurrentList("Bugs");
var card = trello.newCard();
card.pos = "top";
card.name = "Test Card";
card.desc = "Card Description";
card.idList = currentListId;
yield return trello.uploadCard(card);
}
public TrelloAttachment attachment;
Add an attachment to a card.
if(hasAttachment) {
trello.UploadAttachmentToCard(attachment);
}
public TrelloLabel;
Create a new Trello card label. This accepts the following options:
string.color
string.name
TrelloLabel label = new TrelloLabel();
label.color = "Red";
label.name = "High Priority";
public TrelloLabel label;
Add a label to a last known card.
Trello trello = new Trello(key, token);
TrelloLabel label = new TrelloLabel();
label.color = "Red";
label.name = "High Priority";
trello.AddLabelToCard(label);
Initialize exception handling for Trello exception cards.
Trello trello = new Trello(key, token);
void Awake() {
trello.InitializeExceptionHandling();
}
public bool deviceInfo, public bool graphicsInfo, public bool processorInfo;
Gather and compile a string of a user's system information.
SystemInformation sysInfo = new SystemInformation();
string userInfo = "";
userInfo = sysInfo.buildSystemInformation(true, true, true);
public string JSONurl;
Query a URL with the extension .json.
JSON json = new JSON();
string url = "/home/config.json";
string jsonText = "";
jsonText = json.RequestJSON(url);
public string JSONurl;
Query a URL with the extension .json.
JSON json = new JSON();
string url = "/home/config.json";
string jsonText = "";
jsonText = json.RequestJSON(url);
JsonData data = json.MakeJSONObject(jsonText);