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 moderator for the chat.
See: YouTube Data API Reference for youtube.liveChatModerators.insert
.
Synopsis
- type LiveChatModeratorsInsertResource = "youtube" :> ("v3" :> ("liveChat" :> ("moderators" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LiveChatModerator :> Post '[JSON] LiveChatModerator))))))
- liveChatModeratorsInsert :: Text -> LiveChatModerator -> LiveChatModeratorsInsert
- data LiveChatModeratorsInsert
- lPart :: Lens' LiveChatModeratorsInsert Text
- lPayload :: Lens' LiveChatModeratorsInsert LiveChatModerator
REST Resource
type LiveChatModeratorsInsertResource = "youtube" :> ("v3" :> ("liveChat" :> ("moderators" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LiveChatModerator :> Post '[JSON] LiveChatModerator)))))) Source #
A resource alias for youtube.liveChatModerators.insert
method which the
LiveChatModeratorsInsert
request conforms to.
Creating a Request
liveChatModeratorsInsert Source #
Creates a value of LiveChatModeratorsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data LiveChatModeratorsInsert Source #
Adds a new moderator for the chat.
See: liveChatModeratorsInsert
smart constructor.
Instances
Request Lenses
lPart :: Lens' LiveChatModeratorsInsert 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.
lPayload :: Lens' LiveChatModeratorsInsert LiveChatModerator Source #
Multipart request metadata.