gogol-partners-0.3.0: Google Partners 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.Partners.Companies.Leads.Create

Contents

Description

Creates an advertiser lead for the given company ID.

See: Google Partners API Reference for partners.companies.leads.create.

Synopsis

REST Resource

type CompaniesLeadsCreateResource = "v2" :> ("companies" :> (Capture "companyId" Text :> ("leads" :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateLeadRequest :> Post '[JSON] CreateLeadResponse)))))))))))) Source #

A resource alias for partners.companies.leads.create method which the CompaniesLeadsCreate request conforms to.

Creating a Request

companiesLeadsCreate Source #

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

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

data CompaniesLeadsCreate Source #

Creates an advertiser lead for the given company ID.

See: companiesLeadsCreate smart constructor.

Instances

Eq CompaniesLeadsCreate Source # 
Data CompaniesLeadsCreate Source # 

Methods

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

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

toConstr :: CompaniesLeadsCreate -> Constr #

dataTypeOf :: CompaniesLeadsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CompaniesLeadsCreate Source # 
Generic CompaniesLeadsCreate Source # 
GoogleRequest CompaniesLeadsCreate Source # 
type Rep CompaniesLeadsCreate Source # 
type Scopes CompaniesLeadsCreate Source # 
type Rs CompaniesLeadsCreate Source # 

Request Lenses

clcUploadProtocol :: Lens' CompaniesLeadsCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

clcCompanyId :: Lens' CompaniesLeadsCreate Text Source #

The ID of the company to contact.

clcPp :: Lens' CompaniesLeadsCreate Bool Source #

Pretty-print response.

clcUploadType :: Lens' CompaniesLeadsCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").