Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. function generateGoogleToken() {
  2. // This will prompt a dialogue to allow cGOA access to see drive
  3. DriveApp.getFileById(‘YOUR_FILE_ID’)
  4.  
  5. var propertyStore = PropertiesService.getScriptProperties();
  6. // service account for play console
  7. cGoa.GoaApp.setPackage (propertyStore ,
  8. cGoa.GoaApp.createServiceAccount (DriveApp, {
  9. packageName: 'PlayConsole',
  10. fileId:‘YOUR_FILE_ID’,
  11. scopes : cGoa.GoaApp.scopesGoogleExpand (['androidpublisher']), // play store scope
  12. service:'google_service'
  13. }));
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement