Skip to content

Instantly share code, notes, and snippets.

@ardouglass
Created September 4, 2013 06:54
Show Gist options
  • Save ardouglass/6433519 to your computer and use it in GitHub Desktop.
Save ardouglass/6433519 to your computer and use it in GitHub Desktop.
Log a list of boards a specific Trello user has created, when they were created, and the title of the board. Don't forget to add your API key, which you can generate here: https://trello.com/1/appKey/generate. Also, don't forget to set your own username for testing.
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="https://api.trello.com/1/client.js?key=substitutewithyourapplicationkey"></script>
<script>
var idMemberOrUsername = "ardouglass";
Trello.get( "members/"+ idMemberOrUsername +"/actions?filter=createBoard", success, function(){console.log("Nope.");} );
var success = function(boards) {
for(i=0;i<boards.length;i++){
console.log("Board Title: "+ boards[i].data.board.name);
console.log("Creator Username: "+boards[i].memberCreator.username);
console.log("Creation Timestamp: "+ boards[i].date);
console.log("-----------------------------------------------------");
}
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment