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 |
Inserts an existing calendar into the user's calendar list.
See: Calendar API Reference for calendar.calendarList.insert
.
Synopsis
- type CalendarListInsertResource = "calendar" :> ("v3" :> ("users" :> ("me" :> ("calendarList" :> (QueryParam "colorRgbFormat" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CalendarListEntry :> Post '[JSON] CalendarListEntry)))))))
- calendarListInsert :: CalendarListEntry -> CalendarListInsert
- data CalendarListInsert
- cliPayload :: Lens' CalendarListInsert CalendarListEntry
- cliColorRgbFormat :: Lens' CalendarListInsert (Maybe Bool)
REST Resource
type CalendarListInsertResource = "calendar" :> ("v3" :> ("users" :> ("me" :> ("calendarList" :> (QueryParam "colorRgbFormat" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CalendarListEntry :> Post '[JSON] CalendarListEntry))))))) Source #
A resource alias for calendar.calendarList.insert
method which the
CalendarListInsert
request conforms to.
Creating a Request
Creates a value of CalendarListInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CalendarListInsert Source #
Inserts an existing calendar into the user's calendar list.
See: calendarListInsert
smart constructor.
Instances
Request Lenses
cliPayload :: Lens' CalendarListInsert CalendarListEntry Source #
Multipart request metadata.
cliColorRgbFormat :: Lens' CalendarListInsert (Maybe Bool) Source #
Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False.