Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Google’s “Video Call” default in Calendar Api?

I'm implementing a software that creates an event in a calendar, but when I create it, Google adds a hangout (video call) link by default. Thats make the event a bit confusing.

I know that you can eliminate this by going to the user advanced options and untick the option, but I cant access it. I'm using java and OAuth 2.0 to get the token with the permissions, and calendar v3 api to create the event.

Is there anyway you can eliminate this hangout link throughout code?

In the documentation I've found: myEntry.setHangoutLink(null); but it still doesn't work.

like image 523
M919M Avatar asked Nov 03 '14 09:11

M919M


People also ask

How do I remove Google Meet as default in calendar invite?

On your computer, open Google Calendar. Settings. On the left, under "Event Settings." Click on or off Automatically add Google Meet video conferences to events I create.

Can I remove Google Meet from calendar invite?

You can add or remove a video conference to your Calendar events. On your Android device, open Google Calendar. Create an event, or open an existing event you have edit access to. To add a new video conference, tap Add video conferencing.

Does Google Calendar have an API?

Millions of people use Google Calendar to track their events. The Calendar API lets you integrate your app with Google Calendar, creating new ways for you to engage your users.


1 Answers

Edited 2018-09-19

You can remove the Hangout from a Google Calendar event by making an Events.patch request, ensuring you set the query parameter conferenceDataVersion to 1 and with a body that sets conferenceData to null. For example:

POST https://www.googleapis.com/calendar/v3/calendars/primary/events/{EVENT_ID}
     ?conferenceDataVersion=1
Authorization: Bearer {ACCESS_TOKEN}

{
 "conferenceData": null
} 
like image 167
Eric Koleda Avatar answered Nov 14 '22 22:11

Eric Koleda