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 |
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
- 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)))))))))
- mediaDownload :: Text -> MediaDownload'
- data MediaDownload'
- mdXgafv :: Lens' MediaDownload' (Maybe Xgafv)
- mdUploadProtocol :: Lens' MediaDownload' (Maybe Text)
- mdResourceName :: Lens' MediaDownload' Text
- mdAccessToken :: Lens' MediaDownload' (Maybe Text)
- mdUploadType :: Lens' MediaDownload' (Maybe Text)
- mdCallback :: Lens' MediaDownload' (Maybe Text)
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
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
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.
mdAccessToken :: Lens' MediaDownload' (Maybe Text) Source #
OAuth access token.
mdUploadType :: Lens' MediaDownload' (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
mdCallback :: Lens' MediaDownload' (Maybe Text) Source #
JSONP