Copyright | (c) 2015 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
.
- type EventsInsertResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> (QueryParam "maxAttendees" (Textual Int32) :> (QueryParam "sendNotifications" Bool :> (QueryParam "supportsAttachments" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Event :> Post `[JSON]` Event)))))))))
- eventsInsert :: Text -> Event -> EventsInsert
- data EventsInsert
- eveCalendarId :: Lens' EventsInsert Text
- evePayload :: Lens' EventsInsert Event
- eveMaxAttendees :: Lens' EventsInsert (Maybe Int32)
- eveSendNotifications :: Lens' EventsInsert (Maybe Bool)
- eveSupportsAttachments :: Lens' EventsInsert (Maybe Bool)
REST Resource
type EventsInsertResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> (QueryParam "maxAttendees" (Textual Int32) :> (QueryParam "sendNotifications" Bool :> (QueryParam "supportsAttachments" Bool :> (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.
Request Lenses
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
Whether to send notifications about the creation of the new event. Optional. The default is False.
eveSupportsAttachments :: Lens' EventsInsert (Maybe Bool) Source
Whether API client performing operation supports event attachments. Optional. The default is False.