Created
October 4, 2019 14:48
-
-
Save rhyskentish/1d2bee05fee789ee4fbabf9d5c9fc210 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generateGoogleToken() { | |
// This will prompt a dialogue to allow cGOA access to see drive | |
DriveApp.getFileById(‘YOUR_FILE_ID’) | |
var propertyStore = PropertiesService.getScriptProperties(); | |
// service account for play console | |
cGoa.GoaApp.setPackage (propertyStore , | |
cGoa.GoaApp.createServiceAccount (DriveApp, { | |
packageName: 'PlayConsole', | |
fileId:‘YOUR_FILE_ID’, | |
scopes : cGoa.GoaApp.scopesGoogleExpand (['androidpublisher']), // play store scope | |
service:'google_service' | |
})); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment