Class AppsResource.TokensResource.VerifyRequest
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.
Inheritance
AppsResource.TokensResource.VerifyRequest
Inherited Members
Namespace: Google.Apis.PlayGrouping.v1alpha1
Assembly: Google.Apis.PlayGrouping.v1alpha1.dll
Syntax
public class AppsResource.TokensResource.VerifyRequest : PlayGroupingBaseServiceRequest<VerifyTokenResponse>, IClientServiceRequest<VerifyTokenResponse>, IClientServiceRequest
Constructors
VerifyRequest(IClientService, VerifyTokenRequest, string, string)
Constructs a new Verify request.
Declaration
public VerifyRequest(IClientService service, VerifyTokenRequest body, string appPackage, string token)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
VerifyTokenRequest | body | |
string | appPackage | |
string | token |
Properties
AppPackage
Required. App the token belongs to. Format: apps/{package_name}
Declaration
[RequestParameter("appPackage", RequestParameterType.Path)]
public virtual string AppPackage { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PlayGrouping.v1alpha1.Data.VerifyTokenResponse>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PlayGrouping.v1alpha1.Data.VerifyTokenResponse>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PlayGrouping.v1alpha1.Data.VerifyTokenResponse>.RestPath
Token
Required. The token to be verified. Format: tokens/{token}
Declaration
[RequestParameter("token", RequestParameterType.Path)]
public virtual string Token { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PlayGrouping.v1alpha1.Data.VerifyTokenResponse>.GetBody()
InitParameters()
Initializes Verify parameter list.
Declaration
protected override void InitParameters()