Inventory API bug

Inventory API bug

in API Development

Posted by: Ranc.4168

Ranc.4168

Inventory API is not showing salvage kit/gathering tool count correctly
I’m noticing on my character that accessing the https://api.guildwars2.com/v2/characters/ API with my fully enabled API key has the wrong count for salvage kits and gathering items.

It’s showing the number of stacks, rather than the number of items in the stacks.

Is this intended?

Inventory API bug

in API Development

Posted by: Ranc.4168

Ranc.4168

Could someone take a look at this?
It works fine for crafting materials, but not salvage kits or gathering kits.

Inventory API bug

in API Development

Posted by: Chokapik.3741

Chokapik.3741

The thing is, when you buy salvage kits or gathering kits, you only get one. The number displayed in-game is the amount of charges remaining (I think).
Have a look at the Master Salvage Kit for example: https://api.guildwars2.com/v2/items/23043?lang=en
It says charges:25.

Although I think it would be cool if we could have the number of charges on items with the v2/characters endpoint .

Escape from Rata Sum: http://orikaru.net/ratascape
Guild Emblem Editor: http://nailek.net/gw2/emblemeditor

Inventory API bug

in API Development

Posted by: darthmaim.6017

darthmaim.6017

https://github.com/arenanet/api-cdi/pull/36#issue-89412755

It’s missing the gathering tools’ charges which will be added in a future PR.

Also some discussion about that here: https://github.com/arenanet/api-cdi/pull/16#issuecomment-77876109 and following comments

Inventory API bug

in API Development

Posted by: Lawton Campbell

Lawton Campbell

Web Programmer

Yeah, the charges are not currently available in the API. Once we have the data pulled out for ‘em it’ll be in a different field (e.g., not the count field).