Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates an event.
See: Calendar API Reference for calendar.events.insert
.
Synopsis
- type EventsInsertResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> (QueryParam "conferenceDataVersion" (Textual Int32) :> (QueryParam "maxAttendees" (Textual Int32) :> (QueryParam "sendNotifications" Bool :> (QueryParam "supportsAttachments" Bool :> (QueryParam "sendUpdates" EventsInsertSendUpdates :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Event :> Post '[JSON] Event)))))))))))
- eventsInsert :: Text -> Event -> EventsInsert
- data EventsInsert
- eveConferenceDataVersion :: Lens' EventsInsert (Maybe Int32)
- eveCalendarId :: Lens' EventsInsert Text
- evePayload :: Lens' EventsInsert Event
- eveMaxAttendees :: Lens' EventsInsert (Maybe Int32)
- eveSendNotifications :: Lens' EventsInsert (Maybe Bool)
- eveSupportsAttachments :: Lens' EventsInsert (Maybe Bool)
- eveSendUpdates :: Lens' EventsInsert (Maybe EventsInsertSendUpdates)
REST Resource
type EventsInsertResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> (QueryParam "conferenceDataVersion" (Textual Int32) :> (QueryParam "maxAttendees" (Textual Int32) :> (QueryParam "sendNotifications" Bool :> (QueryParam "supportsAttachments" Bool :> (QueryParam "sendUpdates" EventsInsertSendUpdates :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Event :> Post '[JSON] Event))))))))))) Source #
A resource alias for calendar.events.insert
method which the
EventsInsert
request conforms to.
Creating a Request
Creates a value of EventsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EventsInsert Source #
Creates an event.
See: eventsInsert
smart constructor.
Instances
Request Lenses
eveConferenceDataVersion :: Lens' EventsInsert (Maybe Int32) Source #
Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.
eveCalendarId :: Lens' EventsInsert Text Source #
Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
evePayload :: Lens' EventsInsert Event Source #
Multipart request metadata.
eveMaxAttendees :: Lens' EventsInsert (Maybe Int32) Source #
The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
eveSendNotifications :: Lens' EventsInsert (Maybe Bool) Source #
Deprecated. Please use sendUpdates instead. Whether to send notifications about the creation of the new event. Note that some emails might still be sent even if you set the value to false. The default is false.
eveSupportsAttachments :: Lens' EventsInsert (Maybe Bool) Source #
Whether API client performing operation supports event attachments. Optional. The default is False.
eveSendUpdates :: Lens' EventsInsert (Maybe EventsInsertSendUpdates) Source #
Whether to send notifications about the creation of the new event. Note that some emails might still be sent. The default is false.