I am writing a simple Google script to update a spreadsheet (from this Google tutorial). I deploy this script as an API executable which can be called from my computer via python code, the gist of which I include below.
api_id = 'xxxxxxxxxxxxxxxxxxxxxxxxx' # where do I specify the api version?
credentials = get_credentials()
http = credentials.authorize(httplib2.Http())
script_service = discovery.build('script', 'v1', http=http)
request = {"function": "updateListenerStatus", # function name to call inside the Google script
"parameters": [data], # JSON argument passed to the function
"devMode": True} # run the most recently saved instead of published version
response = script_service.scripts().run(body=request, scriptId=api_id).execute()
Every thing is working great, except I would like to utilize the version feature. From reading the documentation I see that by changing "devMode" to False I can run the most recently published version of the script instead of the most recently saved version. However, what if I want to run an older published version? I am familiar with specifying the library version when I import one Google script into another Google script, but is there any way for me to specify the version number from my python code?