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 Super Chat events for a channel.
See: YouTube Data API Reference for youtube.superChatEvents.list
.
Synopsis
- type SuperChatEventsListResource = "youtube" :> ("v3" :> ("superChatEvents" :> (QueryParam "part" Text :> (QueryParam "hl" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] SuperChatEventListResponse)))))))
- superChatEventsList :: Text -> SuperChatEventsList
- data SuperChatEventsList
- scelPart :: Lens' SuperChatEventsList Text
- scelHl :: Lens' SuperChatEventsList (Maybe Text)
- scelPageToken :: Lens' SuperChatEventsList (Maybe Text)
- scelMaxResults :: Lens' SuperChatEventsList Word32
REST Resource
type SuperChatEventsListResource = "youtube" :> ("v3" :> ("superChatEvents" :> (QueryParam "part" Text :> (QueryParam "hl" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] SuperChatEventListResponse))))))) Source #
A resource alias for youtube.superChatEvents.list
method which the
SuperChatEventsList
request conforms to.
Creating a Request
Creates a value of SuperChatEventsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SuperChatEventsList Source #
Lists Super Chat events for a channel.
See: superChatEventsList
smart constructor.
Instances
Request Lenses
scelPart :: Lens' SuperChatEventsList Text Source #
The part parameter specifies the superChatEvent resource parts that the API response will include. Supported values are id and snippet.
scelHl :: Lens' SuperChatEventsList (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.
scelPageToken :: Lens' SuperChatEventsList (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.
scelMaxResults :: Lens' SuperChatEventsList Word32 Source #
The maxResults parameter specifies the maximum number of items that should be returned in the result set.