How to disable Googles Video Call by default in Api Calendar?

I implement software that creates an event on the calendar, but when I create it, Google adds a link to the default video call. Thats make the event a bit confusing.

I know that you can fix this by going to advanced user settings and turning off the option, but I can’t get it. I use java and OAuth 2.0 to get the token with permissions and v3 api calendar to create an event.

Anyway, can you eliminate this link for the video call in the whole code?

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

+4
source share
2 answers

Edited 2018-09-19

You can remove a video call from an event in Google Calendar, a request , a request parameter value and a body in which to value . For instance: Events.patch Events.patch Events.patchconferenceDataVersion1conferenceDatanull

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

{
 "conferenceData": null
} 
+2
source

If someone is still looking for a solution. Here is an example of how we did this with the npm googleapis module.

This is done during the “insert”, and not during the “patch”. Note that 'conferenceData' is null, and conferenceDataVersion is set to 1.

var event = {
    'summary': 'some summary data here',
    'location': 'some location',
    'description': 'add your description',
    'start': {
        'dateTime': 'add your start time here',
    },
    'end': {
        'dateTime': 'add your end time here',
    },
    'attendees': [{
            'email': 'attendee1@email.com'
        }
    ],
    'reminders': {
        'useDefault': true
    },
    'conferenceData' : null
};

calendar.events.insert({
    auth: oauth2Client,
    calendarId: 'primary',
    conferenceDataVersion: 1,
    resource: event,
    sendNotifications: false,
    email: 'youremail@emailprovider.com'

}, function (err, event) {
    if (err) {
        console.log(err)
    }
    console.log(event)
});
0

All Articles