Создание event реализовано функцией:
func CreateEvent(startDate time.Time, duration int, headerText string) (string, error) {
endDate := startDate.Add(time.Hour * time.Duration(duration))
event := &calendar.Event{
Summary: headerText,
Description: "AutomateCreate",
Start: &calendar.EventDateTime{
DateTime: startDate.Format(time.RFC3339),
TimeZone: "Europe/Moscow",
},
End: &calendar.EventDateTime{
DateTime: endDate.Format(time.RFC3339),
TimeZone: "Europe/Moscow",
},
ConferenceData: &calendar.ConferenceData{
CreateRequest: &calendar.CreateConferenceRequest{
ConferenceSolutionKey: &calendar.ConferenceSolutionKey{
Type: "hangoutsMeet",
},
RequestId: uuid.New().String(),
},
},
}
event, err := calendarService.Events.Insert("calendar@gmail.com", event).ConferenceDataVersion(1).Do()
if err != nil {
return "", err
}
text := event.Summary + "/n" + event.HangoutLink
return text, nil
}
Получаю ошибку:
googleapi: Error 400: Invalid conference type value., invalid
Причем без meet событие создается/