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

Contents

Description

Adds a subscription for the authenticated user's channel.

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

Synopsis

REST Resource

type SubscriptionsInsertResource = "youtube" :> ("v3" :> ("subscriptions" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Subscription :> Post '[JSON] Subscription))))) Source #

A resource alias for youtube.subscriptions.insert method which the SubscriptionsInsert request conforms to.

Creating a Request

subscriptionsInsert Source #

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

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

data SubscriptionsInsert Source #

Adds a subscription for the authenticated user's channel.

See: subscriptionsInsert smart constructor.

Instances

Eq SubscriptionsInsert Source # 
Data SubscriptionsInsert Source # 

Methods

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

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

toConstr :: SubscriptionsInsert -> Constr #

dataTypeOf :: SubscriptionsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SubscriptionsInsert Source # 
Generic SubscriptionsInsert Source # 
GoogleRequest SubscriptionsInsert Source # 
type Rep SubscriptionsInsert Source # 
type Rep SubscriptionsInsert = D1 (MetaData "SubscriptionsInsert" "Network.Google.Resource.YouTube.Subscriptions.Insert" "gogol-youtube-0.3.0-2CKT3iLSir83mLosJE4Zg" False) (C1 (MetaCons "SubscriptionsInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_siPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_siPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Subscription))))
type Scopes SubscriptionsInsert Source # 
type Scopes SubscriptionsInsert = (:) Symbol "https://www.googleapis.com/auth/youtube" ((:) Symbol "https://www.googleapis.com/auth/youtube.force-ssl" ((:) Symbol "https://www.googleapis.com/auth/youtubepartner" ([] Symbol)))
type Rs SubscriptionsInsert Source # 

Request Lenses

siPart :: Lens' SubscriptionsInsert Text Source #

The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.

siPayload :: Lens' SubscriptionsInsert Subscription Source #

Multipart request metadata.