Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'
- }));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement