Method GetPurchases
- Namespace
- GuildWars2.Commerce
- Assembly
- GuildWars2.dll
GetPurchases(int, int?, string?, MissingMemberBehavior, CancellationToken)
Retrieves a page of completed purchases on the account. This endpoint is only accessible with a valid access token.
public Task<(HashSet<Transaction> Value, MessageContext Context)> GetPurchases(int pageIndex, int? pageSize, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
pageIndexintHow many pages to skip. The first page starts at 0.
pageSizeint?How many entries to take.
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(HashSet<Transaction> Value, MessageContext Context)>
A task that represents the API request.