gogol-youtube-0.4.0: Google YouTube Data 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.YouTube.PlayListItems.List

Contents

Description

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

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

playListItemsList Source #

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
Eq PlayListItemsList Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.List

Data PlayListItemsList Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.List

Methods

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

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

toConstr :: PlayListItemsList -> Constr #

dataTypeOf :: PlayListItemsList -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PlayListItemsList Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.List

Generic PlayListItemsList Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.List

Associated Types

type Rep PlayListItemsList :: Type -> Type #

GoogleRequest PlayListItemsList Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.List

Associated Types

type Rs PlayListItemsList :: Type #

type Scopes PlayListItemsList :: [Symbol] #

type Rep PlayListItemsList Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.List

type Rep PlayListItemsList = D1 (MetaData "PlayListItemsList" "Network.Google.Resource.YouTube.PlayListItems.List" "gogol-youtube-0.4.0-ICfv3TXlvc9ZGnb0rCY6m" False) (C1 (MetaCons "PlayListItemsList'" PrefixI True) ((S1 (MetaSel (Just "_plilPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_plilOnBehalfOfContentOwner") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plilVideoId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_plilId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plilPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_plilPlayListId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plilMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word32))))))
type Scopes PlayListItemsList Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.List

type Scopes PlayListItemsList = "https://www.googleapis.com/auth/youtube" ': ("https://www.googleapis.com/auth/youtube.force-ssl" ': ("https://www.googleapis.com/auth/youtube.readonly" ': ("https://www.googleapis.com/auth/youtubepartner" ': ([] :: [Symbol]))))
type Rs PlayListItemsList Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.List

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.