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 |
Imports an event. This operation is used to add a private copy of an existing event to a calendar.
See: Calendar API Reference for calendar.events.import
.
- type EventsImportResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> ("import" :> (QueryParam "supportsAttachments" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Event :> Post `[JSON]` Event))))))))
- eventsImport :: Text -> Event -> EventsImport
- data EventsImport
- eiCalendarId :: Lens' EventsImport Text
- eiPayload :: Lens' EventsImport Event
- eiSupportsAttachments :: Lens' EventsImport (Maybe Bool)
REST Resource
type EventsImportResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> ("import" :> (QueryParam "supportsAttachments" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Event :> Post `[JSON]` Event)))))))) Source
A resource alias for calendar.events.import
method which the
EventsImport
request conforms to.
Creating a Request
Creates a value of EventsImport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EventsImport Source
Imports an event. This operation is used to add a private copy of an existing event to a calendar.
See: eventsImport
smart constructor.
Request Lenses
eiCalendarId :: Lens' EventsImport 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.
eiPayload :: Lens' EventsImport Event Source
Multipart request metadata.
eiSupportsAttachments :: Lens' EventsImport (Maybe Bool) Source
Whether API client performing operation supports event attachments. Optional. The default is False.