gogol-mirror-0.0.1: Google Mirror SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Mirror.Timeline.Attachments.Insert

Contents

Description

Adds a new attachment to a timeline item.

See: Google Mirror API Reference for mirror.timeline.attachments.insert.

Synopsis

REST Resource

type TimelineAttachmentsInsertResource = ("mirror" :> ("v1" :> ("timeline" :> (Capture "itemId" Text :> ("attachments" :> (QueryParam "alt" AltJSON :> Post `[JSON]` Attachment)))))) :<|> ("upload" :> ("mirror" :> ("v1" :> ("timeline" :> (Capture "itemId" Text :> ("attachments" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (ReqBody `[OctetStream]` RequestBody :> Post `[JSON]` Attachment))))))))) Source

A resource alias for mirror.timeline.attachments.insert method which the TimelineAttachmentsInsert request conforms to.

Creating a Request

timelineAttachmentsInsert Source

Creates a value of TimelineAttachmentsInsert with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

taiItemId :: Lens' TimelineAttachmentsInsert Text Source

The ID of the timeline item the attachment belongs to.