class AppsTokens extends Resource (View source)

The "tokens" collection of methods.

Typical usage is:

 $playgroupingService = new Google\Service\PlayGrouping(...);
 $tokens = $playgroupingService->apps_tokens;

Methods

verify(string $appPackage, string $token, VerifyTokenRequest $postBody, array $optParams = [])

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. (tokens.verify)

Details

VerifyTokenResponse verify(string $appPackage, string $token, VerifyTokenRequest $postBody, array $optParams = [])

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. (tokens.verify)

Parameters

string $appPackage

Required. App the token belongs to. Format: apps/{package_name}

string $token

Required. The token to be verified. Format: tokens/{token}

VerifyTokenRequest $postBody
array $optParams

Optional parameters.

Return Value

VerifyTokenResponse

Exceptions

Exception