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 |
Gets Partners Status of the logged in user's agency. Should only be called if the logged in user is the admin of the agency.
See: Google Partners API Reference for partners.getPartnersstatus
.
Synopsis
- type GetPartnersstatusResource = "v2" :> ("partnersstatus" :> (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] GetPartnersStatusResponse))))))))))))))
- getPartnersstatus :: GetPartnersstatus
- data GetPartnersstatus
- gpXgafv :: Lens' GetPartnersstatus (Maybe Xgafv)
- gpUploadProtocol :: Lens' GetPartnersstatus (Maybe Text)
- gpAccessToken :: Lens' GetPartnersstatus (Maybe Text)
- gpUploadType :: Lens' GetPartnersstatus (Maybe Text)
- gpRequestMetadataPartnersSessionId :: Lens' GetPartnersstatus (Maybe Text)
- gpRequestMetadataLocale :: Lens' GetPartnersstatus (Maybe Text)
- gpRequestMetadataExperimentIds :: Lens' GetPartnersstatus [Text]
- gpRequestMetadataUserOverridesIPAddress :: Lens' GetPartnersstatus (Maybe Text)
- gpRequestMetadataTrafficSourceTrafficSubId :: Lens' GetPartnersstatus (Maybe Text)
- gpRequestMetadataUserOverridesUserId :: Lens' GetPartnersstatus (Maybe Text)
- gpRequestMetadataTrafficSourceTrafficSourceId :: Lens' GetPartnersstatus (Maybe Text)
- gpCallback :: Lens' GetPartnersstatus (Maybe Text)
REST Resource
type GetPartnersstatusResource = "v2" :> ("partnersstatus" :> (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] GetPartnersStatusResponse)))))))))))))) Source #
A resource alias for partners.getPartnersstatus
method which the
GetPartnersstatus
request conforms to.
Creating a Request
getPartnersstatus :: GetPartnersstatus Source #
Creates a value of GetPartnersstatus
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gpXgafv
gpUploadProtocol
gpAccessToken
gpUploadType
gpRequestMetadataPartnersSessionId
gpRequestMetadataLocale
gpRequestMetadataExperimentIds
gpRequestMetadataUserOverridesIPAddress
gpRequestMetadataTrafficSourceTrafficSubId
gpRequestMetadataUserOverridesUserId
gpRequestMetadataTrafficSourceTrafficSourceId
gpCallback
data GetPartnersstatus Source #
Gets Partners Status of the logged in user's agency. Should only be called if the logged in user is the admin of the agency.
See: getPartnersstatus
smart constructor.
Instances
Request Lenses
gpUploadProtocol :: Lens' GetPartnersstatus (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
gpAccessToken :: Lens' GetPartnersstatus (Maybe Text) Source #
OAuth access token.
gpUploadType :: Lens' GetPartnersstatus (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
gpRequestMetadataPartnersSessionId :: Lens' GetPartnersstatus (Maybe Text) Source #
Google Partners session ID.
gpRequestMetadataLocale :: Lens' GetPartnersstatus (Maybe Text) Source #
Locale to use for the current request.
gpRequestMetadataExperimentIds :: Lens' GetPartnersstatus [Text] Source #
Experiment IDs the current request belongs to.
gpRequestMetadataUserOverridesIPAddress :: Lens' GetPartnersstatus (Maybe Text) Source #
IP address to use instead of the user's geo-located IP address.
gpRequestMetadataTrafficSourceTrafficSubId :: Lens' GetPartnersstatus (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.
gpRequestMetadataUserOverridesUserId :: Lens' GetPartnersstatus (Maybe Text) Source #
Logged-in user ID to impersonate instead of the user's ID.
gpRequestMetadataTrafficSourceTrafficSourceId :: Lens' GetPartnersstatus (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.
gpCallback :: Lens' GetPartnersstatus (Maybe Text) Source #
JSONP