Method GetGamesByIds
- Namespace
- GuildWars2.Pvp
- Assembly
- GuildWars2.dll
GetGamesByIds(IEnumerable<string>, string?, MissingMemberBehavior, CancellationToken)
Retrieves PvP games by their IDs. This endpoint is only accessible with a valid access token.
public Task<(HashSet<Game> Value, MessageContext Context)> GetGamesByIds(IEnumerable<string> gameIds, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
gameIdsIEnumerable<string>The game IDs.
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.