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 states for current user.
See: Google Partners API Reference for partners.userStates.list
.
Synopsis
- type UserStatesListResource = "v2" :> ("userStates" :> (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] ListUserStatesResponse))))))))))))))
- userStatesList :: UserStatesList
- data UserStatesList
- uslXgafv :: Lens' UserStatesList (Maybe Xgafv)
- uslUploadProtocol :: Lens' UserStatesList (Maybe Text)
- uslAccessToken :: Lens' UserStatesList (Maybe Text)
- uslUploadType :: Lens' UserStatesList (Maybe Text)
- uslRequestMetadataPartnersSessionId :: Lens' UserStatesList (Maybe Text)
- uslRequestMetadataLocale :: Lens' UserStatesList (Maybe Text)
- uslRequestMetadataExperimentIds :: Lens' UserStatesList [Text]
- uslRequestMetadataUserOverridesIPAddress :: Lens' UserStatesList (Maybe Text)
- uslRequestMetadataTrafficSourceTrafficSubId :: Lens' UserStatesList (Maybe Text)
- uslRequestMetadataUserOverridesUserId :: Lens' UserStatesList (Maybe Text)
- uslRequestMetadataTrafficSourceTrafficSourceId :: Lens' UserStatesList (Maybe Text)
- uslCallback :: Lens' UserStatesList (Maybe Text)
REST Resource
type UserStatesListResource = "v2" :> ("userStates" :> (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] ListUserStatesResponse)))))))))))))) Source #
A resource alias for partners.userStates.list
method which the
UserStatesList
request conforms to.
Creating a Request
userStatesList :: UserStatesList Source #
Creates a value of UserStatesList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uslXgafv
uslUploadProtocol
uslAccessToken
uslUploadType
uslRequestMetadataPartnersSessionId
uslRequestMetadataLocale
uslRequestMetadataExperimentIds
uslRequestMetadataUserOverridesIPAddress
uslRequestMetadataTrafficSourceTrafficSubId
uslRequestMetadataUserOverridesUserId
uslRequestMetadataTrafficSourceTrafficSourceId
uslCallback
data UserStatesList Source #
Lists states for current user.
See: userStatesList
smart constructor.
Instances
Request Lenses
uslUploadProtocol :: Lens' UserStatesList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
uslAccessToken :: Lens' UserStatesList (Maybe Text) Source #
OAuth access token.
uslUploadType :: Lens' UserStatesList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
uslRequestMetadataPartnersSessionId :: Lens' UserStatesList (Maybe Text) Source #
Google Partners session ID.
uslRequestMetadataLocale :: Lens' UserStatesList (Maybe Text) Source #
Locale to use for the current request.
uslRequestMetadataExperimentIds :: Lens' UserStatesList [Text] Source #
Experiment IDs the current request belongs to.
uslRequestMetadataUserOverridesIPAddress :: Lens' UserStatesList (Maybe Text) Source #
IP address to use instead of the user's geo-located IP address.
uslRequestMetadataTrafficSourceTrafficSubId :: Lens' UserStatesList (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.
uslRequestMetadataUserOverridesUserId :: Lens' UserStatesList (Maybe Text) Source #
Logged-in user ID to impersonate instead of the user's ID.
uslRequestMetadataTrafficSourceTrafficSourceId :: Lens' UserStatesList (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.
uslCallback :: Lens' UserStatesList (Maybe Text) Source #
JSONP