originally posted in:BungieNetPlatform
View Entire Topic
Hey all,
Sorry if this was asked before, but forum search is somewhat lacking (or I am dumb), so here's the question:
We have an awesome endpoint for getting item details:
http://www.bungie.net/Platform/Destiny/{membershipType}/Account/{destinyMembershipId}/Character/{characterId}/Inventory/{itemInstanceId}/
However, it requires characterId. How would I get an item detail for an item stored in the vault? Is there a different endpoint for that or I should provide some magic constant into characterId param?
TIA!
English
-
There is, though it requires (or in the case of the summary service, will soon require) you to be authenticated as yourself to see your own vault items: Platform/Destiny/{membershipType}/MyAccount/Vault/Summary/ - The recommended endpoint, this provides a summary subset of data which will save you a lot of bandwidth. {membershipType}/Account/{destinyMembershipId}/Summary/ - Gets the account object, which will include the vault if you are logged in and looking at your own account. Note that, until our next bnet code deployment, the latter service will let you get vault data for other users. We are removing this capability in our next code deployment, so you should not build any features that rely on such capabilities! Assume that you will only be able to get to the vault if you're looking at yourself.