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 Historical Offers for the current user (or user's entire company)
See: Google Partners API Reference for partners.offers.history.list
.
Synopsis
- type OffersHistoryListResource = "v2" :> ("offers" :> ("history" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "entireCompany" Bool :> (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] ListOffersHistoryResponse)))))))))))))))))))
- offersHistoryList :: OffersHistoryList
- data OffersHistoryList
- ohlXgafv :: Lens' OffersHistoryList (Maybe Xgafv)
- ohlUploadProtocol :: Lens' OffersHistoryList (Maybe Text)
- ohlOrderBy :: Lens' OffersHistoryList (Maybe Text)
- ohlAccessToken :: Lens' OffersHistoryList (Maybe Text)
- ohlUploadType :: Lens' OffersHistoryList (Maybe Text)
- ohlEntireCompany :: Lens' OffersHistoryList (Maybe Bool)
- ohlRequestMetadataPartnersSessionId :: Lens' OffersHistoryList (Maybe Text)
- ohlRequestMetadataLocale :: Lens' OffersHistoryList (Maybe Text)
- ohlRequestMetadataExperimentIds :: Lens' OffersHistoryList [Text]
- ohlRequestMetadataUserOverridesIPAddress :: Lens' OffersHistoryList (Maybe Text)
- ohlPageToken :: Lens' OffersHistoryList (Maybe Text)
- ohlRequestMetadataTrafficSourceTrafficSubId :: Lens' OffersHistoryList (Maybe Text)
- ohlPageSize :: Lens' OffersHistoryList (Maybe Int32)
- ohlRequestMetadataUserOverridesUserId :: Lens' OffersHistoryList (Maybe Text)
- ohlRequestMetadataTrafficSourceTrafficSourceId :: Lens' OffersHistoryList (Maybe Text)
- ohlCallback :: Lens' OffersHistoryList (Maybe Text)
REST Resource
type OffersHistoryListResource = "v2" :> ("offers" :> ("history" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "entireCompany" Bool :> (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] ListOffersHistoryResponse))))))))))))))))))) Source #
A resource alias for partners.offers.history.list
method which the
OffersHistoryList
request conforms to.
Creating a Request
offersHistoryList :: OffersHistoryList Source #
Creates a value of OffersHistoryList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ohlXgafv
ohlUploadProtocol
ohlOrderBy
ohlAccessToken
ohlUploadType
ohlEntireCompany
ohlRequestMetadataPartnersSessionId
ohlRequestMetadataLocale
ohlRequestMetadataExperimentIds
ohlRequestMetadataUserOverridesIPAddress
ohlPageToken
ohlRequestMetadataTrafficSourceTrafficSubId
ohlPageSize
ohlRequestMetadataUserOverridesUserId
ohlRequestMetadataTrafficSourceTrafficSourceId
ohlCallback
data OffersHistoryList Source #
Lists the Historical Offers for the current user (or user's entire company)
See: offersHistoryList
smart constructor.
Instances
Request Lenses
ohlUploadProtocol :: Lens' OffersHistoryList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ohlOrderBy :: Lens' OffersHistoryList (Maybe Text) Source #
Comma-separated list of fields to order by, e.g.: "foo,bar,baz". Use "foo desc" to sort descending. List of valid field names is: name, offer_code, expiration_time, status, last_modified_time, sender_name, creation_time, country_code, offer_type.
ohlAccessToken :: Lens' OffersHistoryList (Maybe Text) Source #
OAuth access token.
ohlUploadType :: Lens' OffersHistoryList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ohlEntireCompany :: Lens' OffersHistoryList (Maybe Bool) Source #
if true, show history for the entire company. Requires user to be admin.
ohlRequestMetadataPartnersSessionId :: Lens' OffersHistoryList (Maybe Text) Source #
Google Partners session ID.
ohlRequestMetadataLocale :: Lens' OffersHistoryList (Maybe Text) Source #
Locale to use for the current request.
ohlRequestMetadataExperimentIds :: Lens' OffersHistoryList [Text] Source #
Experiment IDs the current request belongs to.
ohlRequestMetadataUserOverridesIPAddress :: Lens' OffersHistoryList (Maybe Text) Source #
IP address to use instead of the user's geo-located IP address.
ohlPageToken :: Lens' OffersHistoryList (Maybe Text) Source #
Token to retrieve a specific page.
ohlRequestMetadataTrafficSourceTrafficSubId :: Lens' OffersHistoryList (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.
ohlPageSize :: Lens' OffersHistoryList (Maybe Int32) Source #
Maximum number of rows to return per page.
ohlRequestMetadataUserOverridesUserId :: Lens' OffersHistoryList (Maybe Text) Source #
Logged-in user ID to impersonate instead of the user's ID.
ohlRequestMetadataTrafficSourceTrafficSourceId :: Lens' OffersHistoryList (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.
ohlCallback :: Lens' OffersHistoryList (Maybe Text) Source #
JSONP