View Source GoogleApi.PlayGrouping.V1alpha1.Api.Apps (google_api_play_grouping v0.2.0)

API calls for all endpoints tagged Apps.

Summary

Functions

Create or update tags for the user and app that are represented by the given token.

Verify an API token by asserting the app and persona it belongs to. The verification is a protection against client-side attacks and will fail if the contents of the token don't match the provided values. A token must be verified before it can be used to manipulate user tags.

Functions

Link to this function

playgrouping_apps_tokens_tags_create_or_update(connection, app_package, token, optional_params \\ [], opts \\ [])

View Source
@spec playgrouping_apps_tokens_tags_create_or_update(
  Tesla.Env.client(),
  String.t(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.PlayGrouping.V1alpha1.Model.CreateOrUpdateTagsResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Create or update tags for the user and app that are represented by the given token.

Parameters

  • connection (type: GoogleApi.PlayGrouping.V1alpha1.Connection.t) - Connection to server
  • app_package (type: String.t) - Required. App whose tags are being manipulated. Format: apps/{package_name}
  • token (type: String.t) - Required. Token for which the tags are being inserted or updated. Format: tokens/{token}
  • 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").
    • :body (type: GoogleApi.PlayGrouping.V1alpha1.Model.CreateOrUpdateTagsRequest.t) -
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.PlayGrouping.V1alpha1.Model.CreateOrUpdateTagsResponse{}} on success
  • {:error, info} on failure
Link to this function

playgrouping_apps_tokens_verify(connection, app_package, token, optional_params \\ [], opts \\ [])

View Source
@spec playgrouping_apps_tokens_verify(
  Tesla.Env.client(),
  String.t(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.PlayGrouping.V1alpha1.Model.VerifyTokenResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Verify an API token by asserting the app and persona it belongs to. The verification is a protection against client-side attacks and will fail if the contents of the token don't match the provided values. A token must be verified before it can be used to manipulate user tags.

Parameters

  • connection (type: GoogleApi.PlayGrouping.V1alpha1.Connection.t) - Connection to server
  • app_package (type: String.t) - Required. App the token belongs to. Format: apps/{package_name}
  • token (type: String.t) - Required. The token to be verified. Format: tokens/{token}
  • 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").
    • :body (type: GoogleApi.PlayGrouping.V1alpha1.Model.VerifyTokenRequest.t) -
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.PlayGrouping.V1alpha1.Model.VerifyTokenResponse{}} on success
  • {:error, info} on failure