Method GetLearnedRecipes
- Namespace
- GuildWars2.Hero.Crafting.Recipes
- Assembly
- GuildWars2.dll
GetLearnedRecipes(string, string?, MissingMemberBehavior, CancellationToken)
Retrieves the IDs of all recipes that a character has learned. This includes autolearned recipes, discovered recipes and account-wide unlocked recipes for which the required crafting level is reached. This endpoint is only accessible with a valid access token.
public Task<(HashSet<int> Value, MessageContext Context)> GetLearnedRecipes(string characterName, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
characterNamestringA character name that belongs to the account associated with the access token.
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.