GoogleApi.Games.V1.Api.Achievements.games_achievements_increment

You're seeing just the function games_achievements_increment, go back to GoogleApi.Games.V1.Api.Achievements module for more information.
Link to this function

games_achievements_increment(connection, achievement_id, steps_to_increment, optional_params \\ [], opts \\ [])

View Source

Specs

games_achievements_increment(
  Tesla.Env.client(),
  String.t(),
  integer(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.Games.V1.Model.AchievementIncrementResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Increments the steps of the achievement with the given ID for the currently authenticated player.

Parameters

  • connection (type: GoogleApi.Games.V1.Connection.t) - Connection to server
  • achievement_id (type: String.t) - The ID of the achievement used by this method.
  • steps_to_increment (type: integer()) - The number of steps to increment.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :requestId (type: String.t) - A randomly generated numeric ID for each request specified by the caller. This number is used at the server to ensure that the request is handled correctly across retries.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.Games.V1.Model.AchievementIncrementResponse{}} on success
  • {:error, info} on failure