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 |
Sets the moderation status of one or more comments. The API request must be authorized by the owner of the channel or video associated with the comments.
See: YouTube Data API Reference for youtube.comments.setModerationStatus
.
Synopsis
- type CommentsSetModerationStatusResource = "youtube" :> ("v3" :> ("comments" :> ("setModerationStatus" :> (QueryParam "id" Text :> (QueryParam "moderationStatus" CommentsSetModerationStatusModerationStatus :> (QueryParam "banAuthor" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] ())))))))
- commentsSetModerationStatus :: CommentsSetModerationStatusModerationStatus -> Text -> CommentsSetModerationStatus
- data CommentsSetModerationStatus
- csmsBanAuthor :: Lens' CommentsSetModerationStatus Bool
- csmsModerationStatus :: Lens' CommentsSetModerationStatus CommentsSetModerationStatusModerationStatus
- csmsId :: Lens' CommentsSetModerationStatus Text
REST Resource
type CommentsSetModerationStatusResource = "youtube" :> ("v3" :> ("comments" :> ("setModerationStatus" :> (QueryParam "id" Text :> (QueryParam "moderationStatus" CommentsSetModerationStatusModerationStatus :> (QueryParam "banAuthor" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] ()))))))) Source #
A resource alias for youtube.comments.setModerationStatus
method which the
CommentsSetModerationStatus
request conforms to.
Creating a Request
commentsSetModerationStatus Source #
Creates a value of CommentsSetModerationStatus
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CommentsSetModerationStatus Source #
Sets the moderation status of one or more comments. The API request must be authorized by the owner of the channel or video associated with the comments.
See: commentsSetModerationStatus
smart constructor.
Instances
Request Lenses
csmsBanAuthor :: Lens' CommentsSetModerationStatus Bool Source #
The banAuthor parameter lets you indicate that you want to automatically reject any additional comments written by the comment's author. Set the parameter value to true to ban the author. Note: This parameter is only valid if the moderationStatus parameter is also set to rejected.
csmsModerationStatus :: Lens' CommentsSetModerationStatus CommentsSetModerationStatusModerationStatus Source #
Identifies the new moderation status of the specified comments.