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