gogol-youtube-0.3.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.Insert

Contents

Description

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

REST Resource

type CommentsInsertResource = "youtube" :> ("v3" :> ("comments" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Comment :> Post '[JSON] Comment))))) #

A resource alias for youtube.comments.insert method which the CommentsInsert request conforms to.

Creating a Request

commentsInsert #

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 #

Creates a reply to an existing comment. Note: To create a top-level comment, use the commentThreads.insert method.

See: commentsInsert smart constructor.

Instances

Eq CommentsInsert # 
Data CommentsInsert # 

Methods

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

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

toConstr :: CommentsInsert -> Constr #

dataTypeOf :: CommentsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CommentsInsert # 
Generic CommentsInsert # 

Associated Types

type Rep CommentsInsert :: * -> * #

GoogleRequest CommentsInsert # 
type Rep CommentsInsert # 
type Rep CommentsInsert = D1 (MetaData "CommentsInsert" "Network.Google.Resource.YouTube.Comments.Insert" "gogol-youtube-0.3.0-AfG7xN9T3g6cNxOHVx5t0" False) (C1 (MetaCons "CommentsInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_comPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_comPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Comment))))
type Scopes CommentsInsert # 
type Scopes CommentsInsert = (:) Symbol "https://www.googleapis.com/auth/youtube.force-ssl" ([] Symbol)
type Rs CommentsInsert # 

Request Lenses

comPart :: Lens' CommentsInsert Text #

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 #

Multipart request metadata.