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 |
Adds a new ban to the chat.
See: YouTube Data API Reference for youtube.liveChatBans.insert
.
Synopsis
- type LiveChatBansInsertResource = "youtube" :> ("v3" :> ("liveChat" :> ("bans" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LiveChatBan :> Post '[JSON] LiveChatBan))))))
- liveChatBansInsert :: Text -> LiveChatBan -> LiveChatBansInsert
- data LiveChatBansInsert
- lcbiPart :: Lens' LiveChatBansInsert Text
- lcbiPayload :: Lens' LiveChatBansInsert LiveChatBan
REST Resource
type LiveChatBansInsertResource = "youtube" :> ("v3" :> ("liveChat" :> ("bans" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LiveChatBan :> Post '[JSON] LiveChatBan)))))) Source #
A resource alias for youtube.liveChatBans.insert
method which the
LiveChatBansInsert
request conforms to.
Creating a Request
Creates a value of LiveChatBansInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data LiveChatBansInsert Source #
Adds a new ban to the chat.
See: liveChatBansInsert
smart constructor.
Instances
Request Lenses
lcbiPart :: Lens' LiveChatBansInsert Text Source #
The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
lcbiPayload :: Lens' LiveChatBansInsert LiveChatBan Source #
Multipart request metadata.