Skip to content

Instantly share code, notes, and snippets.

@robinwarren
Created October 14, 2015 11:48
Show Gist options
  • Save robinwarren/b729f485142d600c2955 to your computer and use it in GitHub Desktop.
Save robinwarren/b729f485142d600c2955 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>A Trello Dashboard</title>
<link rel="stylesheet" media="screen" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1>Trello Dashboard</h1>
<!-- We will be putting our dashboard right here -->
</div>
</body>
<script src="http://code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script>
<!-- REPLACE AppKey WITH YOUR APPLICATION KEY -->
<script src="https://api.trello.com/1/client.js?key=[AppKey]"></script>
<script type="text/javascript">
Trello.authorize({
type: "popup",
name: "Trello dashboard",
scope: {
read: true,
write: false
},
expiration: "never",
success: function() { console.log("Successful authentication"); },
error: function() { console.log("Failed authentication"); }
});
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment