This is what Trello needs us to use:
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="https://api.trello.com/1/client.js?key=substitutewithyourapplicationkey"</script>
How would I import/include these in a Google Apps Script?
Based on the answer here by Cameron Roberts, you can use the eval() function on the appscript UrlFetchApp function.
Or you can create another project with the .js lib and publish it and reference that script from the caller project, I wont do that unless that needs to be shared in multiple projects.
In server-side apps script, you should be able to access the library code using the technique from this answer. It doesn't say, but I'd imagine that you would put that
eval outside of all functions in your script, to make the objects in the library available to the rest of your code.
Download them and put them in the script. The rest api is easy to use. Ive used trello rest from appscript.
You can try this 2 options:
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
Hope this helps
©2020 All rights reserved.