ggsrun was updated to v.1.3.3
-
v1.3.3 (October 30, 2017)
- At October 24, 2017, “Manifests” which is new function for controlling the properties of Google Apps Script was added (GAS). You can see the detail of “Manifests” here. In order to modify the manifests from local PC, I added this new function to ggsrun. By using this, you can edit the manifests and update it from your local PC. The usage is here
- Some modifications.
Awesome points of Manifests :
Awesome points of Manifests that I think are below.
- Libraries for a project can be installed by scripts.
- Scopes for using Google APIs can be set by scripts.
- This means that OAuth2 process is not required for GAS.
- Most users have already known that we can retrieve access token using ScriptApp.getOAuthToken(). The scopes of the access token depended on the scopes shown at script editor (File -> Project properties -> Scopes) so far. But by Manifests, this situation was changed. The Manifests makes us be able to modify the scopes by modifying the file (appsscript.json) for setting Manifests. After modified it, ScriptApp.getOAuthToken() gives an access token with the modified scopes. I think that the OAuth2 process is carried out inside in ScriptApp.getOAuthToken(). So users can retrieve the access token which has various scopes without preparing the script for OAuth2 process.
- Enabling APIs on API console is required yet.
- This means that OAuth2 process is not required for GAS.
- Advanced Google Services for a project can be installed by scripts.
- Enabling APIs on API console is required yet.
I think that modifying manifests will be able to apply to various applications.
You can check this and download ggsrun at https://github.com/tanaikech/ggsrun.