gogol-youtube-0.5.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 # 
Instance details

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

Data SubscriptionsInsert Source # 
Instance details

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

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

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

Generic SubscriptionsInsert Source # 
Instance details

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

Associated Types

type Rep SubscriptionsInsert :: Type -> Type #

GoogleRequest SubscriptionsInsert Source # 
Instance details

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

Associated Types

type Rs SubscriptionsInsert :: Type #

type Scopes SubscriptionsInsert :: [Symbol] #

type Rep SubscriptionsInsert Source # 
Instance details

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

type Rep SubscriptionsInsert = D1 (MetaData "SubscriptionsInsert" "Network.Google.Resource.YouTube.Subscriptions.Insert" "gogol-youtube-0.5.0-E1wAk7ot8IcIJSF7D3gEAs" False) (C1 (MetaCons "SubscriptionsInsert'" PrefixI True) (S1 (MetaSel (Just "_siPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_siPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Subscription)))
type Scopes SubscriptionsInsert Source # 
Instance details

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

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

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

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.