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 |
Retrieves a list of snapshots created by your application for the player corresponding to the player ID.
See: Google Play Game Services API Reference for games.snapshots.list
.
Synopsis
- type SnapshotsListResource = "games" :> ("v1" :> ("players" :> (Capture "playerId" Text :> ("snapshots" :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] SnapshotListResponse))))))))
- snapshotsList :: Text -> SnapshotsList
- data SnapshotsList
- slLanguage :: Lens' SnapshotsList (Maybe Text)
- slPageToken :: Lens' SnapshotsList (Maybe Text)
- slPlayerId :: Lens' SnapshotsList Text
- slMaxResults :: Lens' SnapshotsList (Maybe Int32)
REST Resource
type SnapshotsListResource = "games" :> ("v1" :> ("players" :> (Capture "playerId" Text :> ("snapshots" :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] SnapshotListResponse)))))))) Source #
A resource alias for games.snapshots.list
method which the
SnapshotsList
request conforms to.
Creating a Request
Creates a value of SnapshotsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SnapshotsList Source #
Retrieves a list of snapshots created by your application for the player corresponding to the player ID.
See: snapshotsList
smart constructor.
Instances
Request Lenses
slLanguage :: Lens' SnapshotsList (Maybe Text) Source #
The preferred language to use for strings returned by this method.
slPageToken :: Lens' SnapshotsList (Maybe Text) Source #
The token returned by the previous request.
slPlayerId :: Lens' SnapshotsList Text Source #
A player ID. A value of me may be used in place of the authenticated player's ID.
slMaxResults :: Lens' SnapshotsList (Maybe Int32) Source #
The maximum number of snapshot resources to return in the response, used for paging. For any response, the actual number of snapshot resources returned may be less than the specified maxResults.