gogol-plus-domains-0.4.0: Google + Domains 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.PlusDomains.Activities.Insert

Contents

Description

Create a new activity for the authenticated user.

See: Google+ Domains API Reference for plusDomains.activities.insert.

Synopsis

REST Resource

type ActivitiesInsertResource = "plusDomains" :> ("v1" :> ("people" :> (Capture "userId" Text :> ("activities" :> (QueryParam "preview" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Activity :> Post '[JSON] Activity))))))) Source #

A resource alias for plusDomains.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 #

Create a new activity for the authenticated user.

See: activitiesInsert smart constructor.

Instances
Eq ActivitiesInsert Source # 
Instance details

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

Data ActivitiesInsert Source # 
Instance details

Defined in Network.Google.Resource.PlusDomains.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.PlusDomains.Activities.Insert

Generic ActivitiesInsert Source # 
Instance details

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

Associated Types

type Rep ActivitiesInsert :: Type -> Type #

GoogleRequest ActivitiesInsert Source # 
Instance details

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

Associated Types

type Rs ActivitiesInsert :: Type #

type Scopes ActivitiesInsert :: [Symbol] #

type Rep ActivitiesInsert Source # 
Instance details

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

type Rep ActivitiesInsert = D1 (MetaData "ActivitiesInsert" "Network.Google.Resource.PlusDomains.Activities.Insert" "gogol-plus-domains-0.4.0-34lALQjqVKZA6ahc5WKRcy" False) (C1 (MetaCons "ActivitiesInsert'" PrefixI True) (S1 (MetaSel (Just "_aiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Activity) :*: (S1 (MetaSel (Just "_aiUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aiPreview") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))
type Scopes ActivitiesInsert Source # 
Instance details

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

type Scopes ActivitiesInsert = "https://www.googleapis.com/auth/plus.login" ': ("https://www.googleapis.com/auth/plus.me" ': ("https://www.googleapis.com/auth/plus.stream.write" ': ([] :: [Symbol])))
type Rs ActivitiesInsert Source # 
Instance details

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

Request Lenses

aiPayload :: Lens' ActivitiesInsert Activity Source #

Multipart request metadata.

aiUserId :: Lens' ActivitiesInsert Text Source #

The ID of the user to create the activity on behalf of. Its value should be "me", to indicate the authenticated user.

aiPreview :: Lens' ActivitiesInsert (Maybe Bool) Source #

If "true", extract the potential media attachments for a URL. The response will include all possible attachments for a URL, including video, photos, and articles based on the content of the page.