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.CommentThreads.Insert

Contents

Description

Creates a new top-level comment. To add a reply to an existing comment, use the comments.insert method instead.

See: YouTube Data API Reference for youtube.commentThreads.insert.

Synopsis

REST Resource

type CommentThreadsInsertResource = "youtube" :> ("v3" :> ("commentThreads" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CommentThread :> Post '[JSON] CommentThread))))) Source #

A resource alias for youtube.commentThreads.insert method which the CommentThreadsInsert request conforms to.

Creating a Request

commentThreadsInsert Source #

Creates a value of CommentThreadsInsert with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CommentThreadsInsert Source #

Creates a new top-level comment. To add a reply to an existing comment, use the comments.insert method instead.

See: commentThreadsInsert smart constructor.

Instances
Eq CommentThreadsInsert Source # 
Instance details

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

Data CommentThreadsInsert Source # 
Instance details

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

Methods

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

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

toConstr :: CommentThreadsInsert -> Constr #

dataTypeOf :: CommentThreadsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CommentThreadsInsert Source # 
Instance details

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

Generic CommentThreadsInsert Source # 
Instance details

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

Associated Types

type Rep CommentThreadsInsert :: Type -> Type #

GoogleRequest CommentThreadsInsert Source # 
Instance details

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

Associated Types

type Rs CommentThreadsInsert :: Type #

type Scopes CommentThreadsInsert :: [Symbol] #

type Rep CommentThreadsInsert Source # 
Instance details

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

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

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

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

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

Request Lenses

ctiPart :: Lens' CommentThreadsInsert 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.