Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to attach a google meet link to calendar event #270

Merged
merged 5 commits into from
Apr 20, 2023
Merged

Add ability to attach a google meet link to calendar event #270

merged 5 commits into from
Apr 20, 2023

Conversation

JoshTrebilco
Copy link
Contributor

This PR adds a new optional function to add a google meet link when creating an event.

When creating an Event, call $event->addMeetLink();

The meet link can then be accessed using the $event->googleEvent->hangoutLink property.

This will add a Google Meet video conferencing link (similar to clicking this button on the event in Google Calendar):
image

See screenshots below demonstrationing functionality.

Code example with output:
after
The event can then be joined with google meet:
with meet link

This feature is backwards compatible with existing implementations, and shouldn't have any breaking changes.

Without Meet Link (existing functionality still works):
without meet link

Code example with output:
before

Thanks for your time in reviewing this PR, I welcome any feedback or changes requested 馃榿

@freekmurze freekmurze merged commit f13aa90 into spatie:master Apr 20, 2023
18 checks passed
@freekmurze
Copy link
Member

Thanks!

@MHSahebgharani
Copy link

This feature doesn't work for me
I keep getting this message from Google "Invalid conference type value"

does this feature need google workspace account or anything else?

@JoshTrebilco
Copy link
Contributor Author

This feature doesn't work for me I keep getting this message from Google "Invalid conference type value"

does this feature need google workspace account or anything else?

I tested this using a Google Workspace account, with admin permissions for Google Calendar.

You might need to grant permission to attach conferenceData to the Calendar Event. Here's the section from the API that I referenced for this feature. https://developers.google.com/calendar/api/v3/reference/events#methods:~:text=writable-,conferenceData,-nested%20object

Hope this helps! Let me know if you get this working and what you configured to fix it

@mohamedhafizelhaj
Copy link

This feature doesn't work for me I keep getting this message from Google "Invalid conference type value"
does this feature need google workspace account or anything else?

I tested this using a Google Workspace account, with admin permissions for Google Calendar.

You might need to grant permission to attach conferenceData to the Calendar Event. Here's the section from the API that I referenced for this feature. https://developers.google.com/calendar/api/v3/reference/events#methods:~:text=writable-,conferenceData,-nested%20object

Hope this helps! Let me know if you get this working and what you configured to fix it

Can you confirm that it doesn't need a Google Wrokspace account ?

@PrevailExcel
Copy link

This feature doesn't work for me I keep getting this message from Google "Invalid conference type value"
does this feature need google workspace account or anything else?

I tested this using a Google Workspace account, with admin permissions for Google Calendar.
You might need to grant permission to attach conferenceData to the Calendar Event. Here's the section from the API that I referenced for this feature. https://developers.google.com/calendar/api/v3/reference/events#methods:~:text=writable-,conferenceData,-nested%20object
Hope this helps! Let me know if you get this working and what you configured to fix it

Can you confirm that it doesn't need a Google Wrokspace account ?

Can anyone confirm this?

@matejvelikonja
Copy link

@JoshTrebilco is there a way to remove google meet link once it has been added? or you need to completely remove the event and re-add it?

@JoshTrebilco
Copy link
Contributor Author

@JoshTrebilco is there a way to remove google meet link once it has been added? or you need to completely remove the event and re-add it?

No, with the current implementation, it allows you to add but not remove the meet link for a given event. You're correct in thinking that the only way is to remove the event and re-add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants