I recently started using Google Calendar to manage my personal schedule. I’m now looking for a way to programmatically enter my work roster as events in my personal Google Calendar.
gShell impressed
me a lot and it does seem to have a couple of calendar cmdlets that fit my
purpose.I understand
that most of the cmdlets are aimed to serve domain admins but I recall that I read
that some g-suite cmdlets (mail, calendar and drive) would also work for
personal accounts too. Reason enough to give it a shot.
I’ve gone through the Getting Started instructions including creating a Google Developer's Console project and setting the Client ID and Secret. However, I did skip configuring ”your Google Apps domain to allow the use of the APIs” as I do not manage a domain.
The Set-gShellClientSecrets cmdlet created the gShell_OAuth2.json file with entries for clientSecrets but without a value for domains and null as value for defaultDomain.
Now I get an error when invoking the scope manager after a browser window is opened stating “Received verification code. You may now close this window.”
Loosely translated the error is: Value cannot be Null, parameter name: key
Anyone that can get me back on track? Thanks in advance!
PS> Invoke-GShellScopeManager
Please choose an API to explore its scope options:
[1] calendar:v3
[2] classroom:v1
[3] admin:datatransfer_v1
[4] admin:directory_v1
[5] drive:v3
[6] gmail:v1
[7] groupsmigration:v1
[8] groupssettings:v1
[9] licensing:v1
[10] admin:reports_v1
[11] reseller:v1
Enter the number of your choice: 1
Would you like to view all 2 scopes [a], the 1 read-only scopes [r] or 1 all other scopes [o]?
Enter your choice: : a
calendar:v3 - Manipulates events and other calendar data.
Please select the scope(s) you'd like to grant gShell permission to:
[ ] 0 All - All scopes in this list.
[ ] 1 https://www.googleapis.com/auth/calendar - Manage your calendars
[ ] 2 https://www.googleapis.com/auth/calendar.readonly - View your calendars
Enter your choices, separated by commas: 0
calendar:v3 - Manipulates events and other calendar data.
Please confirm the scope(s) you'd like to grant gShell permission to:
[ ] 0 All - All scopes in this list.
[√] 1 https://www.googleapis.com/auth/calendar - Manage your calendars
[√] 2 https://www.googleapis.com/auth/calendar.readonly - View your calendars
Toggle your choices separated by commas or hit [enter] to finish and authenticate:
Scopes have been chosen, thank you.
You will now authenticate for this API. Press any key to continue:
Invoke-GShellScopeManager : Waarde kan niet null zijn.
Parameternaam: key
At line:1 char:1
+ Invoke-GShellScopeManager
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-GShellScopeManager], ArgumentNullException
+ FullyQualifiedErrorId : System.ArgumentNullException,gShell.Cmdlets.Utilities.ScopeHandler.InvokeGShellScopeManager
--
You received this message because you are subscribed to the Google Groups "gshell-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gshell-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.