originally posted in:BungieNetPlatform
View Entire Topic
So there's a great new API "/Platform/Destiny/TransferItem/" which takes the following values.
{
characterId: "2305843009221011538",
itemId: "0", // itemInstanceId for weapons and armour, zero for everything else
itemReferenceHash: "2904517731", // itemHash
membershipType: "2",
stackSize: 1, // specify how many you want to transfer, 1 for weapons and armour
transferToVault: false, // true to send to the vault, and false to pull from it
}
There is also a new variable on items called "transferStatus" with the following values I have so far seen:
0 = Can be transferred
1 = Is Equipped, so can't be transferred
2 = Not Transferable (aka Bounties/Mission Items etc)
3 = Equipped Sub Class? Not sure what's the purpose of this one...
[edit]
There's also a "location" variable on items you can use to determine where an item is currently sitting: 1 is on a character, 2 is in the vault.
I am really looking forward to seeing third parties make use of this one :D
English
#Destiny
-
Hopefully this will inspire other people with more resources than me at their disposal... [url]https://www.dropbox.com/s/68i6r8qvnnmkrug/destiny_manager.png[/url] It looks like there's a throttle on the TransferItem API, as I was wondering why sometimes when I was testing it, it was failing so I checked my logs and...Whoops... [quote]ThrottleLimitExceededMomentarily: Patience is a virtue! Please wait a moment before performing this action again.[/quote] The behaviour of multiple stacks of the same item is a bit quirky (which happens in the game too), as it will sometimes grab a handful from the larger stack even though you choose to move the entire smaller stack. It would be nice if there was a way to detect when this happens as opposed to having to refresh the entire inventory (on my tests it takes up to 4-5 seconds to load each character inventory/vault). A lot of my PHP requests also seem to take a fair amount of time compared to how zippy it is on the official website :/