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 the Offers available for the current user
See: Google Partners API Reference for partners.offers.list
.
Synopsis
- type OffersListResource = "v2" :> ("offers" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" 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 "requestMetadata.trafficSource.trafficSubId" Text :> (QueryParam "requestMetadata.userOverrides.userId" Text :> (QueryParam "requestMetadata.trafficSource.trafficSourceId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListOffersResponse))))))))))))))
- offersList :: OffersList
- data OffersList
- olXgafv :: Lens' OffersList (Maybe Xgafv)
- olUploadProtocol :: Lens' OffersList (Maybe Text)
- olAccessToken :: Lens' OffersList (Maybe Text)
- olUploadType :: Lens' OffersList (Maybe Text)
- olRequestMetadataPartnersSessionId :: Lens' OffersList (Maybe Text)
- olRequestMetadataLocale :: Lens' OffersList (Maybe Text)
- olRequestMetadataExperimentIds :: Lens' OffersList [Text]
- olRequestMetadataUserOverridesIPAddress :: Lens' OffersList (Maybe Text)
- olRequestMetadataTrafficSourceTrafficSubId :: Lens' OffersList (Maybe Text)
- olRequestMetadataUserOverridesUserId :: Lens' OffersList (Maybe Text)
- olRequestMetadataTrafficSourceTrafficSourceId :: Lens' OffersList (Maybe Text)
- olCallback :: Lens' OffersList (Maybe Text)
REST Resource
type OffersListResource = "v2" :> ("offers" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" 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 "requestMetadata.trafficSource.trafficSubId" Text :> (QueryParam "requestMetadata.userOverrides.userId" Text :> (QueryParam "requestMetadata.trafficSource.trafficSourceId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListOffersResponse)))))))))))))) Source #
A resource alias for partners.offers.list
method which the
OffersList
request conforms to.
Creating a Request
offersList :: OffersList Source #
Creates a value of OffersList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
olXgafv
olUploadProtocol
olAccessToken
olUploadType
olRequestMetadataPartnersSessionId
olRequestMetadataLocale
olRequestMetadataExperimentIds
olRequestMetadataUserOverridesIPAddress
olRequestMetadataTrafficSourceTrafficSubId
olRequestMetadataUserOverridesUserId
olRequestMetadataTrafficSourceTrafficSourceId
olCallback
data OffersList Source #
Lists the Offers available for the current user
See: offersList
smart constructor.
Instances
Request Lenses
olUploadProtocol :: Lens' OffersList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
olAccessToken :: Lens' OffersList (Maybe Text) Source #
OAuth access token.
olUploadType :: Lens' OffersList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
olRequestMetadataPartnersSessionId :: Lens' OffersList (Maybe Text) Source #
Google Partners session ID.
olRequestMetadataLocale :: Lens' OffersList (Maybe Text) Source #
Locale to use for the current request.
olRequestMetadataExperimentIds :: Lens' OffersList [Text] Source #
Experiment IDs the current request belongs to.
olRequestMetadataUserOverridesIPAddress :: Lens' OffersList (Maybe Text) Source #
IP address to use instead of the user's geo-located IP address.
olRequestMetadataTrafficSourceTrafficSubId :: Lens' OffersList (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.
olRequestMetadataUserOverridesUserId :: Lens' OffersList (Maybe Text) Source #
Logged-in user ID to impersonate instead of the user's ID.
olRequestMetadataTrafficSourceTrafficSourceId :: Lens' OffersList (Maybe Text) Source #
Identifier to indicate where the traffic comes from. An identifier has multiple letters created by a team which redirected the traffic to us.
olCallback :: Lens' OffersList (Maybe Text) Source #
JSONP