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 collection of playlist items that match the API request parameters. You can retrieve all of the playlist items in a specified playlist or retrieve one or more playlist items by their unique IDs.
See: YouTube Data API Reference for youtube.playlistItems.list
.
Synopsis
- type PlayListItemsListResource = "youtube" :> ("v3" :> ("playlistItems" :> (QueryParam "part" Text :> (QueryParam "onBehalfOfContentOwner" Text :> (QueryParam "videoId" Text :> (QueryParam "id" Text :> (QueryParam "pageToken" Text :> (QueryParam "playlistId" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] PlayListItemListResponse))))))))))
- playListItemsList :: Text -> PlayListItemsList
- data PlayListItemsList
- plilPart :: Lens' PlayListItemsList Text
- plilOnBehalfOfContentOwner :: Lens' PlayListItemsList (Maybe Text)
- plilVideoId :: Lens' PlayListItemsList (Maybe Text)
- plilId :: Lens' PlayListItemsList (Maybe Text)
- plilPageToken :: Lens' PlayListItemsList (Maybe Text)
- plilPlayListId :: Lens' PlayListItemsList (Maybe Text)
- plilMaxResults :: Lens' PlayListItemsList Word32
REST Resource
type PlayListItemsListResource = "youtube" :> ("v3" :> ("playlistItems" :> (QueryParam "part" Text :> (QueryParam "onBehalfOfContentOwner" Text :> (QueryParam "videoId" Text :> (QueryParam "id" Text :> (QueryParam "pageToken" Text :> (QueryParam "playlistId" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] PlayListItemListResponse)))))))))) Source #
A resource alias for youtube.playlistItems.list
method which the
PlayListItemsList
request conforms to.
Creating a Request
Creates a value of PlayListItemsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PlayListItemsList Source #
Returns a collection of playlist items that match the API request parameters. You can retrieve all of the playlist items in a specified playlist or retrieve one or more playlist items by their unique IDs.
See: playListItemsList
smart constructor.
Instances
Request Lenses
plilPart :: Lens' PlayListItemsList Text Source #
The part parameter specifies a comma-separated list of one or more playlistItem 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 playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set part=snippet, the API response will contain all of those properties.
plilOnBehalfOfContentOwner :: Lens' PlayListItemsList (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.
plilVideoId :: Lens' PlayListItemsList (Maybe Text) Source #
The videoId parameter specifies that the request should return only the playlist items that contain the specified video.
plilId :: Lens' PlayListItemsList (Maybe Text) Source #
The id parameter specifies a comma-separated list of one or more unique playlist item IDs.
plilPageToken :: Lens' PlayListItemsList (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.
plilPlayListId :: Lens' PlayListItemsList (Maybe Text) Source #
The playlistId parameter specifies the unique ID of the playlist for which you want to retrieve playlist items. Note that even though this is an optional parameter, every request to retrieve playlist items must specify a value for either the id parameter or the playlistId parameter.
plilMaxResults :: Lens' PlayListItemsList Word32 Source #
The maxResults parameter specifies the maximum number of items that should be returned in the result set.