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 |
Creates a reply to an existing comment. Note: To create a top-level comment, use the commentThreads.insert method.
See: YouTube Data API Reference for youtube.comments.insert
.
Synopsis
- type CommentsInsertResource = "youtube" :> ("v3" :> ("comments" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Comment :> Post '[JSON] Comment)))))
- commentsInsert :: Text -> Comment -> CommentsInsert
- data CommentsInsert
- comPart :: Lens' CommentsInsert Text
- comPayload :: Lens' CommentsInsert Comment
REST Resource
type CommentsInsertResource = "youtube" :> ("v3" :> ("comments" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Comment :> Post '[JSON] Comment))))) Source #
A resource alias for youtube.comments.insert
method which the
CommentsInsert
request conforms to.
Creating a Request
Creates a value of CommentsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CommentsInsert Source #
Creates a reply to an existing comment. Note: To create a top-level comment, use the commentThreads.insert method.
See: commentsInsert
smart constructor.
Instances
Request Lenses
comPart :: Lens' CommentsInsert Text Source #
The part parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
comPayload :: Lens' CommentsInsert Comment Source #
Multipart request metadata.