API:2/characters/:id/training
From Guild Wars 2 Wiki
< API:2 | characters
Jump to navigationJump to search
/v2/characters/:id/training
- HTTP method
- GET
- Format
- json
- API version
- version 2
- Release date
- 2015-05-22
- Scope
- account
builds
characters - Optional
- none
This resource returns information about the training of a character attached to a specific account.
Parameters
access_token
- (optional) If the API key is not specified in the request header, it can be specified here.
Response
training
(array) - contains objects for each skill tree trainedid
(integer) - Skill treeid
, can be compared against thetraining
section for each /v2/professions.spent
(integer) - Shows how many hero points have been spent in this treedone
(boolean -true
/false
) - States whether or not the tree is fully trained.
Example
Request
https://api.guildwars2.com/v2/characters/<character name>/training Authorization: Bearer <API key> https://api.guildwars2.com/v2/characters/<character name>/training?access_token=<API key>
Response
{ "training": [ { "id": 21, "spent": 25, "done": true }, { "id": 95, "spent": 27, "done": true }, ... { "id": 409, "spent": 250, "done": true } ] }