Method GetEquipmentTemplate
- Namespace
- GuildWars2.Hero.Equipment.Templates
- Assembly
- GuildWars2.dll
GetEquipmentTemplate(string, int, string?, MissingMemberBehavior, CancellationToken)
Retrieves an equipment template of a character on the account. This endpoint is only accessible with a valid access token.
public Task<(EquipmentTemplate Value, MessageContext Context)> GetEquipmentTemplate(string characterName, int templateNumber, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
characterNamestringA character name that belongs to the account associated with the access token.
templateNumberintThe number of the template to fetch.
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(EquipmentTemplate Value, MessageContext Context)>
A task that represents the API request.