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 based on a simple text string.
See: Calendar API Reference for calendar.events.quickAdd
.
Synopsis
- type EventsQuickAddResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> ("quickAdd" :> (QueryParam "text" Text :> (QueryParam "sendNotifications" Bool :> (QueryParam "sendUpdates" EventsQuickAddSendUpdates :> (QueryParam "alt" AltJSON :> Post '[JSON] Event)))))))))
- eventsQuickAdd :: Text -> Text -> EventsQuickAdd
- data EventsQuickAdd
- eqaCalendarId :: Lens' EventsQuickAdd Text
- eqaText :: Lens' EventsQuickAdd Text
- eqaSendNotifications :: Lens' EventsQuickAdd (Maybe Bool)
- eqaSendUpdates :: Lens' EventsQuickAdd (Maybe EventsQuickAddSendUpdates)
REST Resource
type EventsQuickAddResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> ("quickAdd" :> (QueryParam "text" Text :> (QueryParam "sendNotifications" Bool :> (QueryParam "sendUpdates" EventsQuickAddSendUpdates :> (QueryParam "alt" AltJSON :> Post '[JSON] Event))))))))) Source #
A resource alias for calendar.events.quickAdd
method which the
EventsQuickAdd
request conforms to.
Creating a Request
Creates a value of EventsQuickAdd
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EventsQuickAdd Source #
Creates an event based on a simple text string.
See: eventsQuickAdd
smart constructor.
Instances
Request Lenses
eqaCalendarId :: Lens' EventsQuickAdd 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.
eqaSendNotifications :: Lens' EventsQuickAdd (Maybe Bool) Source #
Deprecated. Please use sendUpdates instead. Whether to send notifications about the creation of the event. Note that some emails might still be sent even if you set the value to false. The default is false.
eqaSendUpdates :: Lens' EventsQuickAdd (Maybe EventsQuickAddSendUpdates) Source #
Guests who should receive notifications about the creation of the new event.