gogol-youtube-reporting-0.0.1: Google YouTube Reporting 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.YouTubeReporting.Media.Download

Contents

Description

Method for media download. Download is supported on the URI `/v1/media/{+name}?alt=media`.

See: YouTube Reporting API Reference for youtubereporting.media.download.

Synopsis

REST Resource

type MediaDownloadResource = ("v1" :> ("media" :> (Capture "resourceName" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` Media))))))))))) :<|> ("v1" :> ("media" :> (Capture "resourceName" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltMedia :> Get `[OctetStream]` Stream))))))))))) Source

A resource alias for youtubereporting.media.download method which the MediaDownload' request conforms to.

Creating a Request

mediaDownload Source

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

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

Request Lenses

mdUploadProtocol :: Lens' MediaDownload' (Maybe Text) Source

Upload protocol for media (e.g. "raw", "multipart").

mdResourceName :: Lens' MediaDownload' Text Source

Name of the media that is being downloaded. See [][ByteStream.ReadRequest.resource_name].

mdPp :: Lens' MediaDownload' Bool Source

Pretty-print response.

mdUploadType :: Lens' MediaDownload' (Maybe Text) Source

Legacy upload protocol for media (e.g. "media", "multipart").