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 |
Logs a user event.
See: Google Partners API Reference for partners.userEvents.log
.
Synopsis
- type UserEventsLogResource = "v2" :> ("userEvents:log" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogUserEventRequest :> Post '[JSON] LogUserEventResponse))))))))
- userEventsLog :: LogUserEventRequest -> UserEventsLog
- data UserEventsLog
- uelXgafv :: Lens' UserEventsLog (Maybe Xgafv)
- uelUploadProtocol :: Lens' UserEventsLog (Maybe Text)
- uelAccessToken :: Lens' UserEventsLog (Maybe Text)
- uelUploadType :: Lens' UserEventsLog (Maybe Text)
- uelPayload :: Lens' UserEventsLog LogUserEventRequest
- uelCallback :: Lens' UserEventsLog (Maybe Text)
REST Resource
type UserEventsLogResource = "v2" :> ("userEvents:log" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogUserEventRequest :> Post '[JSON] LogUserEventResponse)))))))) Source #
A resource alias for partners.userEvents.log
method which the
UserEventsLog
request conforms to.
Creating a Request
Creates a value of UserEventsLog
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UserEventsLog Source #
Logs a user event.
See: userEventsLog
smart constructor.
Instances
Request Lenses
uelUploadProtocol :: Lens' UserEventsLog (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
uelAccessToken :: Lens' UserEventsLog (Maybe Text) Source #
OAuth access token.
uelUploadType :: Lens' UserEventsLog (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
uelPayload :: Lens' UserEventsLog LogUserEventRequest Source #
Multipart request metadata.
uelCallback :: Lens' UserEventsLog (Maybe Text) Source #
JSONP