client.js for Trello API

1

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?

    
asked by Alberto Tébar 26.04.2016 в 19:30
source

1 answer

5

Trello is capitalized

<script>
$(document).ready(function(){
    console.log(Trello);
});
</script>
    
answered by 26.04.2016 / 19:59
source