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