Hello all,
I have an App script deployed as an API, with various deployments, called from ruby code.
Every so often an incorrect/older deployment is mistakenly used.
I'd like to output logging information by app script itself directly in the return object to the calling ruby code about the script, most importantly the deployment ID. However, I cannot seem to find out how.
To get the script ID is straightforward:
ScriptApp.getScriptId();
For deployment IDs, there seems only to be the project.deployments.list method to list all available deployments of a given script ID, but not the particular one in use.
Any help appreciated.
(For the time being I am manually updating a version number in the app script for each deployment, which again is error prone)