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 |
Returns a list of videos that match the API request parameters.
See: YouTube Data API Reference for youtube.videos.list
.
Synopsis
- type VideosListResource = "youtube" :> ("v3" :> ("videos" :> (QueryParam "part" Text :> (QueryParam "chart" VideosListChart :> (QueryParam "regionCode" Text :> (QueryParam "locale" Text :> (QueryParam "myRating" VideosListMyRating :> (QueryParam "maxHeight" (Textual Word32) :> (QueryParam "hl" Text :> (QueryParam "onBehalfOfContentOwner" Text :> (QueryParam "videoCategoryId" Text :> (QueryParam "maxWidth" (Textual Word32) :> (QueryParam "id" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] VideoListResponse))))))))))))))))
- videosList :: Text -> VideosList
- data VideosList
- vlChart :: Lens' VideosList (Maybe VideosListChart)
- vlPart :: Lens' VideosList Text
- vlRegionCode :: Lens' VideosList (Maybe Text)
- vlLocale :: Lens' VideosList (Maybe Text)
- vlMyRating :: Lens' VideosList (Maybe VideosListMyRating)
- vlMaxHeight :: Lens' VideosList (Maybe Word32)
- vlHl :: Lens' VideosList (Maybe Text)
- vlOnBehalfOfContentOwner :: Lens' VideosList (Maybe Text)
- vlVideoCategoryId :: Lens' VideosList Text
- vlMaxWidth :: Lens' VideosList (Maybe Word32)
- vlId :: Lens' VideosList (Maybe Text)
- vlPageToken :: Lens' VideosList (Maybe Text)
- vlMaxResults :: Lens' VideosList Word32
REST Resource
type VideosListResource = "youtube" :> ("v3" :> ("videos" :> (QueryParam "part" Text :> (QueryParam "chart" VideosListChart :> (QueryParam "regionCode" Text :> (QueryParam "locale" Text :> (QueryParam "myRating" VideosListMyRating :> (QueryParam "maxHeight" (Textual Word32) :> (QueryParam "hl" Text :> (QueryParam "onBehalfOfContentOwner" Text :> (QueryParam "videoCategoryId" Text :> (QueryParam "maxWidth" (Textual Word32) :> (QueryParam "id" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] VideoListResponse)))))))))))))))) Source #
A resource alias for youtube.videos.list
method which the
VideosList
request conforms to.
Creating a Request
:: Text | |
-> VideosList |
Creates a value of VideosList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data VideosList Source #
Returns a list of videos that match the API request parameters.
See: videosList
smart constructor.
Instances
Request Lenses
vlChart :: Lens' VideosList (Maybe VideosListChart) Source #
The chart parameter identifies the chart that you want to retrieve.
vlPart :: Lens' VideosList Text Source #
The part parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set part=snippet, the API response will contain all of those properties.
vlRegionCode :: Lens' VideosList (Maybe Text) Source #
The regionCode parameter instructs the API to select a video chart available in the specified region. This parameter can only be used in conjunction with the chart parameter. The parameter value is an ISO 3166-1 alpha-2 country code.
vlMyRating :: Lens' VideosList (Maybe VideosListMyRating) Source #
Set this parameter's value to like or dislike to instruct the API to only return videos liked or disliked by the authenticated user.
vlMaxHeight :: Lens' VideosList (Maybe Word32) Source #
The maxHeight parameter specifies a maximum height of the embedded player. If maxWidth is provided, maxHeight may not be reached in order to not violate the width request.
vlHl :: Lens' VideosList (Maybe Text) Source #
The hl parameter instructs the API to retrieve localized resource metadata for a specific application language that the YouTube website supports. The parameter value must be a language code included in the list returned by the i18nLanguages.list method. If localized resource details are available in that language, the resource's snippet.localized object will contain the localized values. However, if localized details are not available, the snippet.localized object will contain resource details in the resource's default language.
vlOnBehalfOfContentOwner :: Lens' VideosList (Maybe Text) Source #
Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
vlVideoCategoryId :: Lens' VideosList Text Source #
The videoCategoryId parameter identifies the video category for which the chart should be retrieved. This parameter can only be used in conjunction with the chart parameter. By default, charts are not restricted to a particular category.
vlMaxWidth :: Lens' VideosList (Maybe Word32) Source #
The maxWidth parameter specifies a maximum width of the embedded player. If maxHeight is provided, maxWidth may not be reached in order to not violate the height request.
vlId :: Lens' VideosList (Maybe Text) Source #
The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) that are being retrieved. In a video resource, the id property specifies the video's ID.
vlPageToken :: Lens' VideosList (Maybe Text) Source #
The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. Note: This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
vlMaxResults :: Lens' VideosList Word32 Source #
The maxResults parameter specifies the maximum number of items that should be returned in the result set. Note: This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.