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 |
Lists the progress for all your application's achievements for the currently authenticated player.
See: Google Play Game Services API Reference for games.achievements.list
.
- type AchievementsListResource = "games" :> ("v1" :> ("players" :> (Capture "playerId" Text :> ("achievements" :> (QueryParam "state" AchievementsListState :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] PlayerAchievementListResponse))))))))))
- achievementsList :: Text -> AchievementsList
- data AchievementsList
- alState :: Lens' AchievementsList (Maybe AchievementsListState)
- alConsistencyToken :: Lens' AchievementsList (Maybe Int64)
- alLanguage :: Lens' AchievementsList (Maybe Text)
- alPageToken :: Lens' AchievementsList (Maybe Text)
- alPlayerId :: Lens' AchievementsList Text
- alMaxResults :: Lens' AchievementsList (Maybe Int32)
REST Resource
type AchievementsListResource = "games" :> ("v1" :> ("players" :> (Capture "playerId" Text :> ("achievements" :> (QueryParam "state" AchievementsListState :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] PlayerAchievementListResponse)))))))))) Source #
A resource alias for games.achievements.list
method which the
AchievementsList
request conforms to.
Creating a Request
Creates a value of AchievementsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AchievementsList Source #
Lists the progress for all your application's achievements for the currently authenticated player.
See: achievementsList
smart constructor.
Request Lenses
alState :: Lens' AchievementsList (Maybe AchievementsListState) Source #
Tells the server to return only achievements with the specified state. If this parameter isn't specified, all achievements are returned.
alConsistencyToken :: Lens' AchievementsList (Maybe Int64) Source #
The last-seen mutation timestamp.
alLanguage :: Lens' AchievementsList (Maybe Text) Source #
The preferred language to use for strings returned by this method.
alPageToken :: Lens' AchievementsList (Maybe Text) Source #
The token returned by the previous request.
alPlayerId :: Lens' AchievementsList Text Source #
A player ID. A value of me may be used in place of the authenticated player's ID.
alMaxResults :: Lens' AchievementsList (Maybe Int32) Source #
The maximum number of achievement resources to return in the response, used for paging. For any response, the actual number of achievement resources returned may be less than the specified maxResults.