根據簡單的文字字串建立事件。立即試用。
要求
HTTP 要求
POST https://www.googleapis.com/calendar/v3/calendars/calendarId/events/quickAdd
參數
| 參數名稱 | 值 | 說明 | 
|---|---|---|
| 路徑參數 | ||
| calendarId | string | 日曆 ID。如要擷取日曆 ID,請呼叫 calendarList.list 方法。如要存取目前登入使用者的主日曆,請使用「 primary」關鍵字。 | 
| 必要查詢參數 | ||
| text | string | 描述要建立的事件的文字。 | 
| 選用查詢參數 | ||
| sendNotifications | boolean | 已淘汰,請改用 sendUpdates。 是否要傳送有關事件建立作業的通知。請注意,即使您將值設為 false,系統仍可能會傳送部分電子郵件。預設為false。 | 
| sendUpdates | string | 應收到新活動建立通知的邀請對象。 可接受的值如下: 
 | 
授權
這項要求需要至少具備下列其中一個範圍的授權:
| 範圍 | 
|---|
| https://www.googleapis.com/auth/calendar | 
| https://www.googleapis.com/auth/calendar.events | 
| https://www.googleapis.com/auth/calendar.app.created | 
| https://www.googleapis.com/auth/calendar.events.owned | 
詳情請參閱「驗證與授權」頁面。
要求主體
請勿透過此方法提供要求主體。
回應
如果成功的話,這個方法會在回應內文中傳回 Events 資源。
試試看!
您可以使用下方的 API Explorer,針對即時資料呼叫這個方法,然後查看回應。