gogol-youtube-0.1.0: Google YouTube Data SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.YouTube.Comments.SetModerationStatus

Contents

Description

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

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

Eq CommentsSetModerationStatus Source # 
Data CommentsSetModerationStatus Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CommentsSetModerationStatus -> c CommentsSetModerationStatus #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CommentsSetModerationStatus #

toConstr :: CommentsSetModerationStatus -> Constr #

dataTypeOf :: CommentsSetModerationStatus -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CommentsSetModerationStatus) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CommentsSetModerationStatus) #

gmapT :: (forall b. Data b => b -> b) -> CommentsSetModerationStatus -> CommentsSetModerationStatus #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CommentsSetModerationStatus -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CommentsSetModerationStatus -> r #

gmapQ :: (forall d. Data d => d -> u) -> CommentsSetModerationStatus -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CommentsSetModerationStatus -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CommentsSetModerationStatus -> m CommentsSetModerationStatus #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CommentsSetModerationStatus -> m CommentsSetModerationStatus #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CommentsSetModerationStatus -> m CommentsSetModerationStatus #

Show CommentsSetModerationStatus Source # 
Generic CommentsSetModerationStatus Source # 
GoogleRequest CommentsSetModerationStatus Source # 
type Rep CommentsSetModerationStatus Source # 
type Rep CommentsSetModerationStatus = D1 (MetaData "CommentsSetModerationStatus" "Network.Google.Resource.YouTube.Comments.SetModerationStatus" "gogol-youtube-0.1.0-8YXXHGFWPJC4XWVMAKZOnQ" False) (C1 (MetaCons "CommentsSetModerationStatus'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_csmsBanAuthor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) ((:*:) (S1 (MetaSel (Just Symbol "_csmsModerationStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CommentsSetModerationStatusModerationStatus)) (S1 (MetaSel (Just Symbol "_csmsId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes CommentsSetModerationStatus Source # 
type Scopes CommentsSetModerationStatus = (:) Symbol "https://www.googleapis.com/auth/youtube.force-ssl" ([] Symbol)
type Rs CommentsSetModerationStatus Source # 

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.

csmsId :: Lens' CommentsSetModerationStatus Text Source #

The id parameter specifies a comma-separated list of IDs that identify the comments for which you are updating the moderation status.