How about this answer?
I think that the link might not be able to be directly retrieved by the Calendar API. But, I think that the structure of link can be created using the calendar ID and htmlLink
of the event retrieved by the methods of "Events: get" and "Events: list" in Calendar API. In this answer, I would like to propose the method for this. The flow of this method is as follows.
Flow:
Retrieve the calendar ID.
Retrieve the event ID.
In this case, you can retrieve this using the methods of "Events: list" in Calendar API like below.
curl \
'https://www.googleapis.com/calendar/v3/calendars/{calendarId}/events?timeMax=###&timeMin=###' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--compressed
Retrieve htmlLink
using the method of "Events: get" in Calendar API. Please use the retrieved event ID here.
curl \
'https://www.googleapis.com/calendar/v3/calendars/{calendarId}/events/{eventId}' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--compressed
htmlLink
is like https://www.google.com/calendar/event?eid=###
. ###
is the base65 encoded event ID and calendar ID. Ref So also, you can create this. This is used for the next section.
Create the link you want.
- The link is like
https://calendar.google.com/event?action=TEMPLATE&tmeid=###&tmsrc={calendarId}
###
of the value of eid
can be retrieved from the retrieved htmlLink
.
References:
I think that as a test, you can retrieve the values using "Try this API" of the following pages.