Method GetGames
- Namespace
- GuildWars2.Pvp
- Assembly
- GuildWars2.dll
GetGames(string?, MissingMemberBehavior, CancellationToken)
Retrieves the 10 most recent PvP games played on the account associated with the access token. This endpoint is only accessible with a valid access token.
public Task<(HashSet<Game> Value, MessageContext Context)> GetGames(string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.