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 |
Lists sponsors for a channel.
See: YouTube Data API Reference for youtube.sponsors.list
.
Synopsis
- type SponsorsListResource = "youtube" :> ("v3" :> ("sponsors" :> (QueryParam "part" Text :> (QueryParam "filter" SponsorsListFilter :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] SponsorListResponse)))))))
- sponsorsList :: Text -> SponsorsList
- data SponsorsList
- sPart :: Lens' SponsorsList Text
- sFilter :: Lens' SponsorsList SponsorsListFilter
- sPageToken :: Lens' SponsorsList (Maybe Text)
- sMaxResults :: Lens' SponsorsList Word32
REST Resource
type SponsorsListResource = "youtube" :> ("v3" :> ("sponsors" :> (QueryParam "part" Text :> (QueryParam "filter" SponsorsListFilter :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] SponsorListResponse))))))) Source #
A resource alias for youtube.sponsors.list
method which the
SponsorsList
request conforms to.
Creating a Request
:: Text | |
-> SponsorsList |
Creates a value of SponsorsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SponsorsList Source #
Lists sponsors for a channel.
See: sponsorsList
smart constructor.
Instances
Request Lenses
sPart :: Lens' SponsorsList Text Source #
The part parameter specifies the sponsor resource parts that the API response will include. Supported values are id and snippet.
sFilter :: Lens' SponsorsList SponsorsListFilter Source #
The filter parameter specifies which channel sponsors to return.
sPageToken :: Lens' SponsorsList (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.
sMaxResults :: Lens' SponsorsList Word32 Source #
The maxResults parameter specifies the maximum number of items that should be returned in the result set.