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