Class PlayersResource.GetRequest
Retrieves the Player resource with the given ID. To retrieve the player for the currently authenticated
user, set playerId
to me
.
Inheritance
PlayersResource.GetRequest
Inherited Members
Namespace: Google.Apis.Games.v1
Assembly: Google.Apis.Games.v1.dll
Syntax
public class PlayersResource.GetRequest : GamesBaseServiceRequest<Player>, IClientServiceRequest<Player>, IClientServiceRequest
Constructors
GetRequest(IClientService, string)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string playerId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | playerId |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Language
The preferred language to use for strings returned by this method.
Declaration
[RequestParameter("language", RequestParameterType.Query)]
public virtual string Language { get; set; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
PlayerId
A player ID. A value of me
may be used in place of the authenticated player's ID.
Declaration
[RequestParameter("playerId", RequestParameterType.Path)]
public virtual string PlayerId { get; }
Property Value
Type | Description |
---|---|
string |
PlayerIdConsistencyToken
Consistency token of the player id. The call returns a 'not found' result when the token is present and invalid. Empty value is ignored. See also GlobalPlayerIdConsistencyTokenProto
Declaration
[RequestParameter("playerIdConsistencyToken", RequestParameterType.Query)]
public virtual string PlayerIdConsistencyToken { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()