Skip to content

Instantly share code, notes, and snippets.

@wdchris
Last active May 18, 2020 17:29
Show Gist options
  • Save wdchris/0711ac675502e1d6438313c29cfb2115 to your computer and use it in GitHub Desktop.
Save wdchris/0711ac675502e1d6438313c29cfb2115 to your computer and use it in GitHub Desktop.
Authenticate with the Trello API
<script src="https://api.trello.com/1/client.js?key=MY_KEY"></script>
<script type="text/javascript">
Trello.authorize({
name: "My site",
scope: {
read: true,
write: false
},
expiration: "never",
error: function() {
console.log("Failed authentication");
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment