Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates an advertiser lead for the given company ID.
See: Google Partners API Reference for partners.companies.leads.create
.
Synopsis
- type CompaniesLeadsCreateResource = "v2" :> ("companies" :> (Capture "companyId" Text :> ("leads" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateLeadRequest :> Post '[JSON] CreateLeadResponse))))))))))
- companiesLeadsCreate :: Text -> CreateLeadRequest -> CompaniesLeadsCreate
- data CompaniesLeadsCreate
- clcXgafv :: Lens' CompaniesLeadsCreate (Maybe Xgafv)
- clcUploadProtocol :: Lens' CompaniesLeadsCreate (Maybe Text)
- clcCompanyId :: Lens' CompaniesLeadsCreate Text
- clcAccessToken :: Lens' CompaniesLeadsCreate (Maybe Text)
- clcUploadType :: Lens' CompaniesLeadsCreate (Maybe Text)
- clcPayload :: Lens' CompaniesLeadsCreate CreateLeadRequest
- clcCallback :: Lens' CompaniesLeadsCreate (Maybe Text)
REST Resource
type CompaniesLeadsCreateResource = "v2" :> ("companies" :> (Capture "companyId" Text :> ("leads" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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
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
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.
clcAccessToken :: Lens' CompaniesLeadsCreate (Maybe Text) Source #
OAuth access token.
clcUploadType :: Lens' CompaniesLeadsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
clcPayload :: Lens' CompaniesLeadsCreate CreateLeadRequest Source #
Multipart request metadata.
clcCallback :: Lens' CompaniesLeadsCreate (Maybe Text) Source #
JSONP