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

Contents

Description

Posts a bulletin for a specific channel. (The user submitting the request must be authorized to act on the channel's behalf.) Note: Even though an activity resource can contain information about actions like a user rating a video or marking a video as a favorite, you need to use other API methods to generate those activity resources. For example, you would use the API's videos.rate() method to rate a video and the playlistItems.insert() method to mark a video as a favorite.

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

Synopsis

REST Resource

type ActivitiesInsertResource = "youtube" :> ("v3" :> ("activities" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Activity :> Post '[JSON] Activity))))) Source #

A resource alias for youtube.activities.insert method which the ActivitiesInsert request conforms to.

Creating a Request

activitiesInsert Source #

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

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

data ActivitiesInsert Source #

Posts a bulletin for a specific channel. (The user submitting the request must be authorized to act on the channel's behalf.) Note: Even though an activity resource can contain information about actions like a user rating a video or marking a video as a favorite, you need to use other API methods to generate those activity resources. For example, you would use the API's videos.rate() method to rate a video and the playlistItems.insert() method to mark a video as a favorite.

See: activitiesInsert smart constructor.

Instances
Eq ActivitiesInsert Source # 
Instance details

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

Data ActivitiesInsert Source # 
Instance details

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

Methods

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

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

toConstr :: ActivitiesInsert -> Constr #

dataTypeOf :: ActivitiesInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ActivitiesInsert Source # 
Instance details

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

Generic ActivitiesInsert Source # 
Instance details

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

Associated Types

type Rep ActivitiesInsert :: Type -> Type #

GoogleRequest ActivitiesInsert Source # 
Instance details

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

Associated Types

type Rs ActivitiesInsert :: Type #

type Scopes ActivitiesInsert :: [Symbol] #

type Rep ActivitiesInsert Source # 
Instance details

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

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

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

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

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

Request Lenses

aiPart :: Lens' ActivitiesInsert 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.

aiPayload :: Lens' ActivitiesInsert Activity Source #

Multipart request metadata.