0xLeif / GW2

Swift GW2 API Wrapper
https://github.com/zmeriksen/MyGW2Account
2 stars 0 forks source link

Support Account buildstorage #5

Open 0xLeif opened 4 years ago

0xLeif commented 4 years ago

https://wiki.guildwars2.com/wiki/API:2/account/buildstorage

0xLeif commented 4 years ago

Receiving this:

HTTP/1.1 200 OK
Date: Wed, 12 Feb 2020 02:57:44 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 12
Connection: close
Cache-Control: private,max-age=3600
Content-Language: en
Expires: Wed, 12 Feb 2020 03:57:44 GMT
Server: Quaggans
X-Result-Total: 2
X-Result-Count: 2
Access-Control-Expose-Headers: X-Result-Total,X-Result-Count
X-Rate-Limit-Limit: 600
X-Content-Type-Options: nosniff
Access-Control-Allow-Origin: *
X-Powered-By: ARR/2.5
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

[
  1,
  2
]

As to Expected:

The endpoint returns an array of objects, each representing a template slot in the build storage. The amount of templates is implied by the length of the array. Each object contains the following: name (string) profession (string) specializations (array of 3 objects) id (number) traits (array of 3 numbers) – The trait IDs skills (number, optional) heal (number) utilities (array of 3 numbers) – The skill IDs elite (number) aquatic_skills (array, optional) – An array of item IDs for each rune or signet applied to the item. heal (number) utilities (array of 3 numbers) – The skill IDs elite (number) legends (array of 2 numbers, optional) – An array of legend. aquatic_legends (array of 2 numbers, optional) – An array of legend.