gogol-shopping-content-0.0.1: Google Content API for Shopping 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.Content.Accounts.Insert

Contents

Description

Creates a Merchant Center sub-account.

See: Content API for Shopping Reference for content.accounts.insert.

Synopsis

REST Resource

type AccountsInsertResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Account :> Post `[JSON]` Account)))))) Source

A resource alias for content.accounts.insert method which the AccountsInsert request conforms to.

Creating a Request

accountsInsert Source

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

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

Request Lenses

aMerchantId :: Lens' AccountsInsert Word64 Source

The ID of the managing account.

aPayload :: Lens' AccountsInsert Account Source

Multipart request metadata.

aDryRun :: Lens' AccountsInsert (Maybe Bool) Source

Flag to run the request in dry-run mode.