gogol-youtube-0.4.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))))) Source #

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

Creating a Request

commentsInsert Source #

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
Eq CommentsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Comments.Insert

Data CommentsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Comments.Insert

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 Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Comments.Insert

Generic CommentsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Comments.Insert

Associated Types

type Rep CommentsInsert :: Type -> Type #

GoogleRequest CommentsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Comments.Insert

Associated Types

type Rs CommentsInsert :: Type #

type Scopes CommentsInsert :: [Symbol] #

type Rep CommentsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Comments.Insert

type Rep CommentsInsert = D1 (MetaData "CommentsInsert" "Network.Google.Resource.YouTube.Comments.Insert" "gogol-youtube-0.4.0-ICfv3TXlvc9ZGnb0rCY6m" False) (C1 (MetaCons "CommentsInsert'" PrefixI True) (S1 (MetaSel (Just "_comPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_comPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Comment)))
type Scopes CommentsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Comments.Insert

type Scopes CommentsInsert = "https://www.googleapis.com/auth/youtube.force-ssl" ': ([] :: [Symbol])
type Rs CommentsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Comments.Insert

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.