Update calendar date, starttime and endtime?

181 views
Skip to first unread message

laurent

unread,
Jul 12, 2023, 8:01:17 PM7/12/23
to GAM for Google Workspace
Hi,
I saw that GAMADV-XTD3 was supporting Update calendar events 

Does that mean I can use the command below to update a known eventid and modify its date, start time, and end time?

gam calendar <CalendarEntity> update event [<EventEntity>] <EventUpdateAttribute>+ [<EventNotificationAttribute>] [showdayofweek] [csv [todrive <ToDriveAttribute>*] [formatjson [quotechar <Character>]]]


I am rather new to GAMADV-XTD3, a working example would be most welcome to start with,
in case GAMADV-XTD3 can solve my use case.

Thanks a lot for your helpful tools (GAM and GAMADV-XTD3)!

Ross Scroggs

unread,
Jul 12, 2023, 9:10:19 PM7/12/23
to google-ap...@googlegroups.com
gam calendar cale...@domain.com update event id <EventID> start 2023-07-19T14:30:00-07:00 end 2023-07-19T15:30:00-07:00
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/af98c2b3-2981-4124-8cda-06e8b7c85628n%40googlegroups.com.

laurent

unread,
Jul 12, 2023, 10:20:45 PM7/12/23
to GAM for Google Workspace
Thanks so much Ross. That helped!

I must return a feasibility study (syncing an iCal URL feed from Schooldude as the data source) to a Google Calendar by tomorrow.

Can I also get a simple example of an event creation with "date", "start time", "end time", "location" and "event description"?
I am trying to transcribe the ICS URL (or ICS file) and create/update/delete the corresponding Events.

gam calendar <CalendarEntity> add event [id <String>] <EventAttribute>+ [<EventNotificationAttribute>] [showdayofweek] [csv [todrive <ToDriveAttribute>*] [formatjson [quotechar <Character>]]]


Regards

Ross Scroggs

unread,
Jul 13, 2023, 9:48:50 AM7/13/23
to google-ap...@googlegroups.com
gam calendar cale...@domain.com add event start 2023-07-19T14:30:00+01:00 end 2023-07-19T15:30:00+01:00 location "xxxx" description "yyyy" summary "zzzz"

Ross
----
Ross Scroggs



laurent

unread,
Jul 13, 2023, 12:13:12 PM7/13/23
to GAM for Google Workspace
Thanks a lot Ross!
We now have what we need to plan our project (sync Schooldude iCal URL feed to a Google Calendar).

Just a final question, do you recommend that we run the commands you gave me (gam calendar) via bash shell, or is that acceptable to run the gam tool in a php script that will execute the gam command in bash shell?
We have to decide whether to use gam advanced from a bash shell script or from a php script (managed solely by our Ubuntu crontab. no interaction with web)

<?php
  $output = shell_exec('gam calendar cale...@domain.com update event id 999999 start 2023-07-19T14:30:00-07:00 end 2023-07-19T15:30:00-07:00');
  echo "<pre>$output</pre>";

Le mercredi 12 juillet 2023 à 18:10:19 UTC-7, Ross Scroggs a écrit :

Ross Scroggs

unread,
Jul 13, 2023, 12:17:29 PM7/13/23
to google-ap...@googlegroups.com
Laurent,

Running from PHP should be fine

Ross



--
Reply all
Reply to author
Forward
0 new messages