I am implementing Google tasks in appstudio using Javascript. I am trying to implement the example shown on JavaScript quickstart | Google Tasks | Google Developers (under Set Up the Sample). I created 2 buttons (using controls) and named them authorize_button and signout_button as shown in the example. I put the first chunk of in the code behind for the form and filled in the client_ID and API key values.
My question is about the second chunk of code. I don’t know where to put it nor in what format. Any ideas? This is the code from the example:
<script async defer src="https://apis.google.com/js/api.js"
onload="this.onload=function(){};handleClientLoad()"
onreadystatechange="if (this.readyState === 'complete') this.onload()">
</script>
I attached my sample project here also.
GoogleTasks1.appstudio.zip (11.9 KB)