Method GetBuild
- Namespace
- GuildWars2.Hero.Builds
- Assembly
- GW2SDK.dll
GetBuild(int, string, string?, MissingMemberBehavior, CancellationToken)
Retrieves the specified build template of a character on the account. This endpoint is only accessible with a valid access
public Task<(BuildTemplate Value, MessageContext Context)> GetBuild(int templateNumber, string characterName, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
templateNumber
intThe number of the build template to fetch.
characterName
stringA character name that belongs to the account associated with the access token.
accessToken
stringAn API key or subtoken.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(BuildTemplate Value, MessageContext Context)>
A task that represents the API request.