I am trying to create a trigger for a google script using Golang. I am able to create the program and script, but I also need a trigger to run the script and enable it to do certain actions. It's easy enough to make a trigger through the dashboard or using an existing script file (.gs).
However, I would like to use Golang to manage the entire process. I have looked at the docs and the only examples they have for creating triggers is in the google script format and I cannot seem to find any support for other languages.
Is this API available and I am just looking in the wrong place or is this something that must be done in the dashboard or through a google script?
After following @Tanakie's solution I ended up seeing a definitive answer to my question here: https://developers.google.com/apps-script/api/how-tos/execute?authuser=1. Number 4