0
我使用typheous gem
通過Google Calendar API(V3)創建新活動。響應返回200
並創建日曆事件。我的問題是,是否有辦法始終創建附帶video-call
的活動?Rails:如何通過Google Calendar API創建新活動時添加視頻通話
response = Typhoeus::Request.new(
"https://www.googleapis.com/calendar/v3/calendars/calendarId/events",
method: :post,
body: {
start: {
dateTime: Time.parse(split_time_range[0])
},
end: {
dateTime: Time.parse(split_time_range[1])
},
attendees: [
{
email: "#{ENV["my_email"]}"
}
],
summary: "New Meeting"
}.to_json,
params: {access_token: session[:google_calendar_access_token], calendarId: "primary", sendNotifications: true},
headers: {"Content-Type": "application/json"}
).run