I am trying to use the Trello library client.js to use the Trello API in my application. On their Trello API Get Started page they have a brief tutorial on how to use it, I follow the steps, I get my < em> Application Key , but when I insert the code they give me in my website and I call the object trello
, I get an error in the console:
Uncaught ReferenceError: trello is not defined
I have made a small and simple code to test it and it does not work:
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="https://api.trello.com/1/client.js?key=[AppKey]"></script>
<script>
$(document).ready(function(){
console.log(trello);
});
</script>
</head>
<body>
</body>
</html>
(Obviously I replaced [AppKey] with the Application Key that I got in step 1 of the Get Started )
Any idea why it does not work?