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 |
Registers a push token for the current user and application.
See: Google Play Game Services API Reference for games.pushtokens.update
.
- type PushtokensUpdateResource = "games" :> ("v1" :> ("pushtokens" :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PushToken :> Put '[JSON] ())))))
- pushtokensUpdate :: PushToken -> PushtokensUpdate
- data PushtokensUpdate
- puConsistencyToken :: Lens' PushtokensUpdate (Maybe Int64)
- puPayload :: Lens' PushtokensUpdate PushToken
REST Resource
type PushtokensUpdateResource = "games" :> ("v1" :> ("pushtokens" :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PushToken :> Put '[JSON] ()))))) Source #
A resource alias for games.pushtokens.update
method which the
PushtokensUpdate
request conforms to.
Creating a Request
Creates a value of PushtokensUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PushtokensUpdate Source #
Registers a push token for the current user and application.
See: pushtokensUpdate
smart constructor.
Request Lenses
puConsistencyToken :: Lens' PushtokensUpdate (Maybe Int64) Source #
The last-seen mutation timestamp.