gogol-plus-domains-0.0.1: Google + Domains SDK.

Copyright(c) 2015 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:

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.