Table of Contents

Method GetGamesByIds

Namespace
GuildWars2.Pvp
Assembly
GW2SDK.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

gameIds IEnumerable<string>

The game IDs.

accessToken string

An API key or subtoken.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(HashSet<Game> Value, MessageContext Context)>

A task that represents the API request.