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 a new item into the timeline.
See: Google Mirror API Reference for mirror.timeline.insert
.
Synopsis
- type TimelineInsertResource = ("mirror" :> ("v1" :> ("timeline" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TimelineItem :> Post '[JSON] TimelineItem))))) :<|> ("upload" :> ("mirror" :> ("v1" :> ("timeline" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] TimelineItem :> Post '[JSON] TimelineItem)))))))
- timelineInsert :: TimelineItem -> TimelineInsert
- data TimelineInsert
- tiPayload :: Lens' TimelineInsert TimelineItem
REST Resource
type TimelineInsertResource = ("mirror" :> ("v1" :> ("timeline" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TimelineItem :> Post '[JSON] TimelineItem))))) :<|> ("upload" :> ("mirror" :> ("v1" :> ("timeline" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] TimelineItem :> Post '[JSON] TimelineItem))))))) Source #
A resource alias for mirror.timeline.insert
method which the
TimelineInsert
request conforms to.
Creating a Request
Creates a value of TimelineInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TimelineInsert Source #
Inserts a new item into the timeline.
See: timelineInsert
smart constructor.
Instances
Request Lenses
tiPayload :: Lens' TimelineInsert TimelineItem Source #
Multipart request metadata.