gogol-plus-domains-0.0.1: Google + Domains 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.PlusDomains.Media.Insert

Contents

Description

Add a new media item to an album. The current upload size limitations are 36MB for a photo and 1GB for a video. Uploads do not count against quota if photos are less than 2048 pixels on their longest side or videos are less than 15 minutes in length.

See: Google+ Domains API Reference for plusDomains.media.insert.

Synopsis

REST Resource

type MediaInsertResource = ("plusDomains" :> ("v1" :> ("people" :> (Capture "userId" Text :> ("media" :> (Capture "collection" MediaInsertCollection :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Media :> Post `[JSON]` Media)))))))) :<|> ("upload" :> ("plusDomains" :> ("v1" :> ("people" :> (Capture "userId" Text :> ("media" :> (Capture "collection" MediaInsertCollection :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (MultipartRelated `[JSON]` Media RequestBody :> Post `[JSON]` Media)))))))))) Source

A resource alias for plusDomains.media.insert method which the MediaInsert request conforms to.

Creating a Request

mediaInsert Source

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

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

data MediaInsert Source

Add a new media item to an album. The current upload size limitations are 36MB for a photo and 1GB for a video. Uploads do not count against quota if photos are less than 2048 pixels on their longest side or videos are less than 15 minutes in length.

See: mediaInsert smart constructor.

Request Lenses

miPayload :: Lens' MediaInsert Media Source

Multipart request metadata.

miUserId :: Lens' MediaInsert Text Source

The ID of the user to create the activity on behalf of.