gogol-youtube-reporting-0.4.0: Google YouTube Reporting SDK.

Copyright(c) 2015-2016 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" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GDataMedia))))))))) :<|> ("v1" :> ("media" :> (Capture "resourceName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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:

data MediaDownload' Source #

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

See: mediaDownload smart constructor.

Instances
Eq MediaDownload' Source # 
Instance details

Defined in Network.Google.Resource.YouTubeReporting.Media.Download

Data MediaDownload' Source # 
Instance details

Defined in Network.Google.Resource.YouTubeReporting.Media.Download

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MediaDownload' -> c MediaDownload' #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MediaDownload' #

toConstr :: MediaDownload' -> Constr #

dataTypeOf :: MediaDownload' -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MediaDownload') #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MediaDownload') #

gmapT :: (forall b. Data b => b -> b) -> MediaDownload' -> MediaDownload' #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MediaDownload' -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MediaDownload' -> r #

gmapQ :: (forall d. Data d => d -> u) -> MediaDownload' -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MediaDownload' -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MediaDownload' -> m MediaDownload' #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MediaDownload' -> m MediaDownload' #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MediaDownload' -> m MediaDownload' #

Show MediaDownload' Source # 
Instance details

Defined in Network.Google.Resource.YouTubeReporting.Media.Download

Generic MediaDownload' Source # 
Instance details

Defined in Network.Google.Resource.YouTubeReporting.Media.Download

Associated Types

type Rep MediaDownload' :: Type -> Type #

GoogleRequest MediaDownload' Source # 
Instance details

Defined in Network.Google.Resource.YouTubeReporting.Media.Download

Associated Types

type Rs MediaDownload' :: Type #

type Scopes MediaDownload' :: [Symbol] #

GoogleRequest (MediaDownload MediaDownload') Source # 
Instance details

Defined in Network.Google.Resource.YouTubeReporting.Media.Download

type Rep MediaDownload' Source # 
Instance details

Defined in Network.Google.Resource.YouTubeReporting.Media.Download

type Rep MediaDownload' = D1 (MetaData "MediaDownload'" "Network.Google.Resource.YouTubeReporting.Media.Download" "gogol-youtube-reporting-0.4.0-Dr9CDcNGMDRA1BwOES1tMd" False) (C1 (MetaCons "MediaDownload''" PrefixI True) ((S1 (MetaSel (Just "_mdXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_mdUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mdResourceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "_mdAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_mdUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mdCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes MediaDownload' Source # 
Instance details

Defined in Network.Google.Resource.YouTubeReporting.Media.Download

type Scopes MediaDownload' = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly" ': ("https://www.googleapis.com/auth/yt-analytics.readonly" ': ([] :: [Symbol]))
type Rs MediaDownload' Source # 
Instance details

Defined in Network.Google.Resource.YouTubeReporting.Media.Download

type Scopes (MediaDownload MediaDownload') Source # 
Instance details

Defined in Network.Google.Resource.YouTubeReporting.Media.Download

type Rs (MediaDownload MediaDownload') Source # 
Instance details

Defined in Network.Google.Resource.YouTubeReporting.Media.Download

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.

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

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