Google Event Creating without hangout meeting

47 Views Asked by At

I have a requirement that i need to create an Event with a videocall, the problem is that after the Event is created for some reason is not creating a HangoutLink.

Here is my code:

var myEvent = new Event()
                {
                    Summary = "Google Meet 1",
                    Start = new EventDateTime()
                    {
                        DateTime = new DateTime(2023, 7, 19, 17, 0, 0), 
                        TimeZone = "America/Mexico_City" 
                    },
                    End = new EventDateTime()
                    {
                        DateTime = new DateTime(2023, 7, 19, 18, 0, 0), 
                        TimeZone = "America/Mexico_City" 
                    },
                    ConferenceData = new ConferenceData()
                    {
                       
                        CreateRequest = new CreateConferenceRequest()
                        {
                            RequestId = Guid.NewGuid().ToString(),
                            ConferenceSolutionKey = new ConferenceSolutionKey()
                            {
                                Type = "hangoutsMeet"
                            }
                           
                    }

                    },
                Attendees = new List<EventAttendee>()
                {
                    new EventAttendee() { Email = "[email protected]" }
                }
            };

Is there something that i am missing?

0

There are 0 best solutions below