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 |
Lists advertiser leads for a user's associated company. Should only be called within the context of an authorized logged in user.
See: Google Partners API Reference for partners.leads.list
.
Synopsis
- type LeadsListResource = "v2" :> ("leads" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "requestMetadata.partnersSessionId" Text :> (QueryParam "requestMetadata.locale" Text :> (QueryParams "requestMetadata.experimentIds" Text :> (QueryParam "requestMetadata.userOverrides.ipAddress" Text :> (QueryParam "pageToken" Text :> (QueryParam "requestMetadata.trafficSource.trafficSubId" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "requestMetadata.userOverrides.userId" Text :> (QueryParam "requestMetadata.trafficSource.trafficSourceId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListLeadsResponse)))))))))))))))))
- leadsList :: LeadsList
- data LeadsList
- llXgafv :: Lens' LeadsList (Maybe Xgafv)
- llUploadProtocol :: Lens' LeadsList (Maybe Text)
- llOrderBy :: Lens' LeadsList (Maybe Text)
- llAccessToken :: Lens' LeadsList (Maybe Text)
- llUploadType :: Lens' LeadsList (Maybe Text)
- llRequestMetadataPartnersSessionId :: Lens' LeadsList (Maybe Text)
- llRequestMetadataLocale :: Lens' LeadsList (Maybe Text)
- llRequestMetadataExperimentIds :: Lens' LeadsList [Text]
- llRequestMetadataUserOverridesIPAddress :: Lens' LeadsList (Maybe Text)
- llPageToken :: Lens' LeadsList (Maybe Text)
- llRequestMetadataTrafficSourceTrafficSubId :: Lens' LeadsList (Maybe Text)
- llPageSize :: Lens' LeadsList (Maybe Int32)
- llRequestMetadataUserOverridesUserId :: Lens' LeadsList (Maybe Text)
- llRequestMetadataTrafficSourceTrafficSourceId :: Lens' LeadsList (Maybe Text)
- llCallback :: Lens' LeadsList (Maybe Text)
REST Resource
type LeadsListResource = "v2" :> ("leads" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "requestMetadata.partnersSessionId" Text :> (QueryParam "requestMetadata.locale" Text :> (QueryParams "requestMetadata.experimentIds" Text :> (QueryParam "requestMetadata.userOverrides.ipAddress" Text :> (QueryParam "pageToken" Text :> (QueryParam "requestMetadata.trafficSource.trafficSubId" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "requestMetadata.userOverrides.userId" Text :> (QueryParam "requestMetadata.trafficSource.trafficSourceId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListLeadsResponse))))))))))))))))) Source #
A resource alias for partners.leads.list
method which the
LeadsList
request conforms to.
Creating a Request
leadsList :: LeadsList Source #
Creates a value of LeadsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
llXgafv
llUploadProtocol
llOrderBy
llAccessToken
llUploadType
llRequestMetadataPartnersSessionId
llRequestMetadataLocale
llRequestMetadataExperimentIds
llRequestMetadataUserOverridesIPAddress
llPageToken
llRequestMetadataTrafficSourceTrafficSubId
llPageSize
llRequestMetadataUserOverridesUserId
llRequestMetadataTrafficSourceTrafficSourceId
llCallback
Lists advertiser leads for a user's associated company. Should only be called within the context of an authorized logged in user.
See: leadsList
smart constructor.
Instances
Request Lenses
llUploadProtocol :: Lens' LeadsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
llOrderBy :: Lens' LeadsList (Maybe Text) Source #
How to order Leads. Currently, only `create_time` and `create_time desc` are supported
llUploadType :: Lens' LeadsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
llRequestMetadataPartnersSessionId :: Lens' LeadsList (Maybe Text) Source #
Google Partners session ID.
llRequestMetadataLocale :: Lens' LeadsList (Maybe Text) Source #
Locale to use for the current request.
llRequestMetadataExperimentIds :: Lens' LeadsList [Text] Source #
Experiment IDs the current request belongs to.
llRequestMetadataUserOverridesIPAddress :: Lens' LeadsList (Maybe Text) Source #
IP address to use instead of the user's geo-located IP address.
llPageToken :: Lens' LeadsList (Maybe Text) Source #
A token identifying a page of results that the server returns. Typically, this is the value of `ListLeadsResponse.next_page_token` returned from the previous call to ListLeads.
llRequestMetadataTrafficSourceTrafficSubId :: Lens' LeadsList (Maybe Text) Source #
Second level identifier to indicate where the traffic comes from. An identifier has multiple letters created by a team which redirected the traffic to us.
llPageSize :: Lens' LeadsList (Maybe Int32) Source #
Requested page size. Server may return fewer leads than requested. If unspecified, server picks an appropriate default.
llRequestMetadataUserOverridesUserId :: Lens' LeadsList (Maybe Text) Source #
Logged-in user ID to impersonate instead of the user's ID.