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 |
Updates a user's profile. A user can only update their own profile and should only be called within the context of a logged in user.
See: Google Partners API Reference for partners.users.updateProfile
.
Synopsis
- type UsersUpdateProFileResource = "v2" :> ("users" :> ("profile" :> (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 :> (ReqBody '[JSON] UserProFile :> Patch '[JSON] UserProFile))))))))))))))))
- usersUpdateProFile :: UserProFile -> UsersUpdateProFile
- data UsersUpdateProFile
- uupfXgafv :: Lens' UsersUpdateProFile (Maybe Xgafv)
- uupfUploadProtocol :: Lens' UsersUpdateProFile (Maybe Text)
- uupfAccessToken :: Lens' UsersUpdateProFile (Maybe Text)
- uupfUploadType :: Lens' UsersUpdateProFile (Maybe Text)
- uupfPayload :: Lens' UsersUpdateProFile UserProFile
- uupfRequestMetadataPartnersSessionId :: Lens' UsersUpdateProFile (Maybe Text)
- uupfRequestMetadataLocale :: Lens' UsersUpdateProFile (Maybe Text)
- uupfRequestMetadataExperimentIds :: Lens' UsersUpdateProFile [Text]
- uupfRequestMetadataUserOverridesIPAddress :: Lens' UsersUpdateProFile (Maybe Text)
- uupfRequestMetadataTrafficSourceTrafficSubId :: Lens' UsersUpdateProFile (Maybe Text)
- uupfRequestMetadataUserOverridesUserId :: Lens' UsersUpdateProFile (Maybe Text)
- uupfRequestMetadataTrafficSourceTrafficSourceId :: Lens' UsersUpdateProFile (Maybe Text)
- uupfCallback :: Lens' UsersUpdateProFile (Maybe Text)
REST Resource
type UsersUpdateProFileResource = "v2" :> ("users" :> ("profile" :> (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 :> (ReqBody '[JSON] UserProFile :> Patch '[JSON] UserProFile)))))))))))))))) Source #
A resource alias for partners.users.updateProfile
method which the
UsersUpdateProFile
request conforms to.
Creating a Request
Creates a value of UsersUpdateProFile
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uupfXgafv
uupfUploadProtocol
uupfAccessToken
uupfUploadType
uupfPayload
uupfRequestMetadataPartnersSessionId
uupfRequestMetadataLocale
uupfRequestMetadataExperimentIds
uupfRequestMetadataUserOverridesIPAddress
uupfRequestMetadataTrafficSourceTrafficSubId
uupfRequestMetadataUserOverridesUserId
uupfRequestMetadataTrafficSourceTrafficSourceId
uupfCallback
data UsersUpdateProFile Source #
Updates a user's profile. A user can only update their own profile and should only be called within the context of a logged in user.
See: usersUpdateProFile
smart constructor.
Instances
Request Lenses
uupfUploadProtocol :: Lens' UsersUpdateProFile (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
uupfAccessToken :: Lens' UsersUpdateProFile (Maybe Text) Source #
OAuth access token.
uupfUploadType :: Lens' UsersUpdateProFile (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
uupfPayload :: Lens' UsersUpdateProFile UserProFile Source #
Multipart request metadata.
uupfRequestMetadataPartnersSessionId :: Lens' UsersUpdateProFile (Maybe Text) Source #
Google Partners session ID.
uupfRequestMetadataLocale :: Lens' UsersUpdateProFile (Maybe Text) Source #
Locale to use for the current request.
uupfRequestMetadataExperimentIds :: Lens' UsersUpdateProFile [Text] Source #
Experiment IDs the current request belongs to.
uupfRequestMetadataUserOverridesIPAddress :: Lens' UsersUpdateProFile (Maybe Text) Source #
IP address to use instead of the user's geo-located IP address.
uupfRequestMetadataTrafficSourceTrafficSubId :: Lens' UsersUpdateProFile (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.
uupfRequestMetadataUserOverridesUserId :: Lens' UsersUpdateProFile (Maybe Text) Source #
Logged-in user ID to impersonate instead of the user's ID.
uupfRequestMetadataTrafficSourceTrafficSourceId :: Lens' UsersUpdateProFile (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.
uupfCallback :: Lens' UsersUpdateProFile (Maybe Text) Source #
JSONP