Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Error with GoaApp, Goa library, for OAuth2

34 views
Skip to first unread message

Rand Wrobel

unread,
Jul 29, 2019, 7:45:09 PM7/29/19
to Excel Liberation
Hi, I'm trying to set the one-off properties for OAuth2 from GAS in a Gsheet, with cGoa.GoaApp.setPackage(), 


function oneOffSetting() {   // Example: Set actual values **
var propertyStore = PropertiesService.getScriptProperties();

  cGoa.GoaApp.setPackage (propertyStore , cGoa.GoApp.createServiceAccount (DriveApp , {
    packageName: 'AutoMLEEMy_serviceaccount',
    fileId:'12yUy1pVvVoHPJ6RwvbZn5eEuYA2U6UXX', 
    scopes : cGoa.GoaApp.scopesGoogleExpand (['cloud-platform']),
    service:'google_service'
  }));


and consistently getting 

"SyntaxError: Unexpected strict mode reserved word (line 43, file "GoaApp", project "cGoa")

I am using the version 30 of the project.  I looked at gitHub, but the line number doesn't see to correlate to executable code.

Any ideas?

Thanks,
- Rand


Bruce Mcpherson

unread,
Jul 30, 2019, 1:38:04 PM7/30/19
to excel-r...@googlegroups.com
Thanks for the info. I’ll have a look.

--
You received this message because you are subscribed to the Google Groups "Excel Liberation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to excel-ramblin...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/excel-ramblings/36dcbf83-c9a3-4f18-b0b4-8cbc5f5fa2d1%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages