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 |
Create a turn-based match.
See: Google Play Game Services API Reference for games.turnBasedMatches.create
.
Synopsis
- type TurnBasedMatchesCreateResource = "games" :> ("v1" :> ("turnbasedmatches" :> ("create" :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TurnBasedMatchCreateRequest :> Post '[JSON] TurnBasedMatch))))))
- turnBasedMatchesCreate :: TurnBasedMatchCreateRequest -> TurnBasedMatchesCreate
- data TurnBasedMatchesCreate
- tbmcPayload :: Lens' TurnBasedMatchesCreate TurnBasedMatchCreateRequest
- tbmcLanguage :: Lens' TurnBasedMatchesCreate (Maybe Text)
REST Resource
type TurnBasedMatchesCreateResource = "games" :> ("v1" :> ("turnbasedmatches" :> ("create" :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TurnBasedMatchCreateRequest :> Post '[JSON] TurnBasedMatch)))))) Source #
A resource alias for games.turnBasedMatches.create
method which the
TurnBasedMatchesCreate
request conforms to.
Creating a Request
turnBasedMatchesCreate Source #
Creates a value of TurnBasedMatchesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TurnBasedMatchesCreate Source #
Create a turn-based match.
See: turnBasedMatchesCreate
smart constructor.
Instances
Request Lenses
tbmcPayload :: Lens' TurnBasedMatchesCreate TurnBasedMatchCreateRequest Source #
Multipart request metadata.
tbmcLanguage :: Lens' TurnBasedMatchesCreate (Maybe Text) Source #
The preferred language to use for strings returned by this method.