https://github.com/bfollington/Trello-Cards-Unity
Create Trello cards from Unity3D games, for crash reports, easy high scores, user posts or anything you like..!
https://github.com/bfollington/Trello-Cards-Unity
Last synced: about 2 months ago
JSON representation
Create Trello cards from Unity3D games, for crash reports, easy high scores, user posts or anything you like..!
- Host: GitHub
- URL: https://github.com/bfollington/Trello-Cards-Unity
- Owner: bfollington
- License: mit
- Created: 2014-12-11T11:19:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-28T11:36:31.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T07:22:52.975Z (3 months ago)
- Language: C#
- Homepage:
- Size: 10.7 KB
- Stars: 42
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - Trello-Cards-Unity - Create Trello cards from Unity games (Trello)
README
Trello Cards For Unity
==================[](https://twitter.com/vivavolt)
[-f5f5f5?style=flat&colorA=000000&colorB=000000)](https://blockchain.com/eth/address/0x981e493b795A7a28c43Bf8d7a8E125C419435Fa7)
[-f5f5f5?style=flat&colorA=000000&colorB=000000)](https://ko-fi.com/vivavolt)

This is a simple C# system for creating Trello cards in your own boards from your Unity app or game. Some use cases may be crash reports, significant events etc.
## Installation
Just drag these `.cs` files into your scripts folder, wherever you like. If you already have `MiniJson` in your project, you may get a namespace conflict. No matter, just delete the one from this repo.
## Usage
Go ahead and grab a Trello Application Key from: https://trello.com/1/appKey/generate. Grab the application key, I'll refer to this as the `key` from now on.
Now head to: https://trello.com/1/connect?key=[yourkeygoeshere]&name=Your%20App&response_type=token&scope=read,write&expiration=never
In your browser (make sure to fill in your key from just before). You'll be taken to https://trello.com/1/token/approve, and the token code given will be your `token`.
## Example Code
```cs
using UnityEngine;
using System.Collections;
using MiniJSON;
using System.Collections.Generic;
using Trello;public class RunAtStart : MonoBehaviour {
// 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);
}}
}
```## Errors
If you see a `401 Unauthorized` message returnd, it likely means your `key` or `token` are invalid or have expired. Try generate new ones and trying again, if you're having trouble get in touch with me.