def TransferItem(accounttype, charid, item_hash, item_id=0, quantity=1, to_vault=True): return fetch.Fetch('Destiny/TransferItem/', data=json.dumps({ 'membershipType': accounttype, 'itemReferenceHash': item_hash, 'itemId': item_id, 'stackSize': quantity, 'characterId': charid, 'transferToVault': to_vault, }))
def GetPostGameCarnageReport(activityid): return fetch.Fetch('Destiny/Stats/PostGameCarnageReport/%s/', activityid)
def GetGrimoireByMembership(accounttype, accountid): return fetch.Fetch('Destiny/Vanguard/Grimoire/%s/%s/', accounttype, accountid)
def GetDestinySingleDefinition(deftype, defid): return fetch.Fetch('Destiny/Manifest/%s/%s/', deftype, defid)
def GetDestinyAggregateActivityStats(accounttype, accountid, charid): return fetch.Fetch('Destiny/Stats/AggregateActivityStats/%s/%s/%s/', accounttype, accountid, charid)
def GetCharacterSummary(accounttype, accountid, charid): return fetch.Fetch('Destiny/%s/Account/%s/Character/%i/', accounttype, accountid, charid)
def GetCharacterInventory(accounttype, accountid, charid): return fetch.Fetch('Destiny/%s/Account/%s/Character/%i/Inventory/', accounttype, accountid, charid)
def GetCharacter(accounttype, accountid, charid): return fetch.Fetch('Destiny/%s/Account/%s/Character/%i/Complete/', accounttype, accountid, charid)
def Settings(): return fetch.Fetch('Settings/')
def SearchUsers(username): return fetch.Fetch('User/SearchUsers/?' + urllib.urlencode({'q': username}))
def SearchDestinyPlayer(username, accounttype=None): if not accounttype: accounttype = 'all' return fetch.Fetch('Destiny/SearchDestinyPlayer/%s/%s', accounttype, username)
def HelloWorld(): return fetch.Fetch('HelloWorld/')
def GetSpecialEventAdvisors(): return fetch.Fetch('Destiny/Events/')
def GetPublicXurVendor(): return fetch.Fetch('Destiny/Advisors/Xur/')
def GetPublicAdvisors(): return fetch.Fetch('Destiny/Advisors/')
def GetAvailableLocales(): return fetch.Fetch('GetAvailableLocales/')
def GetBungieAccount(profileid): return fetch.Fetch('User/GetBungieAccount/%s/0/', profileid)
def GetAccount(accounttype, accountid): return fetch.Fetch('Destiny/%s/Account/%i/', accounttype, accountid)
def GetCharacterActivities(accounttype, accountid, charid): return fetch.Fetch('Destiny/%s/Account/%s/Character/%i/Activities/', accounttype, accountid, charid)
def GetAccountSummary(accounttype, accountid): return fetch.Fetch('Destiny/%s/Account/%i/Summary/', accounttype, accountid)
def GetCharacterProgression(accounttype, accountid, charid): return fetch.Fetch('Destiny/%s/Account/%i/Character/%i/Progression/', accounttype, accountid, charid)
def GetActivityHistory(accounttype, accountid, charid, mode, count=15, page=0): return fetch.Fetch('Destiny/Stats/ActivityHistory/%s/%s/%s/?mode=%s&count=%i&page=%i', accounttype, accountid, charid, mode, count, page)
def GetCurrentUser(): return fetch.Fetch('User/GetBungieNetUser/')
def GetAdminsOfGroup(groupid): return fetch.Fetch('Group/%s/Admins/', groupid)
def GetDestinyManifest(): return fetch.Fetch('Destiny/Manifest/')
def GetAdvisorsForCurrentCharacter(accounttype, charid): return fetch.Fetch('Destiny/%s/MyAccount/Character/%s/Advisors/', accounttype, charid)
def GetGlobalAlerts(): return fetch.Fetch('GlobalAlerts/')
def GetAllItemsSummary(accounttype, accountid): return fetch.Fetch('Destiny/%s/Account/%i/Items/', accounttype, accountid)
def GetItemDetail(accounttype, accountid, charid, itemid): return fetch.Fetch('Destiny/%s/Account/%s/Character/%s/Inventory/%s/', accounttype, accountid, charid, itemid)
def GetMyGrimoire(accounttype): return fetch.Fetch('Destiny/Vanguard/Grimoire/%s/', accounttype)