alextselegidis / easyappointments

:date: Easy!Appointments - Self Hosted Appointment Scheduler
https://easyappointments.org
GNU General Public License v3.0
3.28k stars 1.26k forks source link

Integration of Google Meet Links in Calendar Events #1589

Open patrickzeitz opened 1 month ago

patrickzeitz commented 1 month ago

Hey, This is my first pull request ever 😬 I was wondering why it's not possible to add Google Meet links automatically, so I did it myself. Maybe this is handy for everyone?

This thread was my starting point: https://stackoverflow.com/questions/75916295/google-calendar-api-create-event-google-meet-link

Description: These changes add functionality to automatically generate Google Meet links for calendar events when appointments are created or updated.

Main changes:

In the add_appointment() method:

Addition of a Google_Service_Calendar_ConferenceData object. Configuration of the CreateConferenceRequest with a ConferenceSolutionKey for Google Meet. Setting the ConferenceData object for the event. Update of the insert() call to consider conferenceDataVersion. In the update_appointment() method:

Check if ConferenceData already exists. If not, add a new Google_Service_Calendar_ConferenceData object as in add_appointment(). Update of the update() call to consider conferenceDataVersion. These changes enable the automatic generation and addition of a Google Meet link to each new or updated appointment in the calendar event.

alextselegidis commented 1 month ago

Hello!

Thanks for sharing this!

The code changes will need some adjustments, but I shall be able to pull this into core.

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!