Esempio n. 1
0
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,
  }))
Esempio n. 2
0
def GetPostGameCarnageReport(activityid):
  return fetch.Fetch('Destiny/Stats/PostGameCarnageReport/%s/', activityid)
Esempio n. 3
0
def GetGrimoireByMembership(accounttype, accountid):
  return fetch.Fetch('Destiny/Vanguard/Grimoire/%s/%s/', accounttype, accountid)
Esempio n. 4
0
def GetDestinySingleDefinition(deftype, defid):
  return fetch.Fetch('Destiny/Manifest/%s/%s/', deftype, defid)
Esempio n. 5
0
def GetDestinyAggregateActivityStats(accounttype, accountid, charid):
  return fetch.Fetch('Destiny/Stats/AggregateActivityStats/%s/%s/%s/', accounttype, accountid,
                     charid)
Esempio n. 6
0
def GetCharacterSummary(accounttype, accountid, charid):
  return fetch.Fetch('Destiny/%s/Account/%s/Character/%i/', accounttype, accountid, charid)
Esempio n. 7
0
def GetCharacterInventory(accounttype, accountid, charid):
  return fetch.Fetch('Destiny/%s/Account/%s/Character/%i/Inventory/', accounttype, accountid,
                     charid)
Esempio n. 8
0
def GetCharacter(accounttype, accountid, charid):
  return fetch.Fetch('Destiny/%s/Account/%s/Character/%i/Complete/', accounttype, accountid, charid)
Esempio n. 9
0
def Settings():
  return fetch.Fetch('Settings/')
Esempio n. 10
0
def SearchUsers(username):
  return fetch.Fetch('User/SearchUsers/?' + urllib.urlencode({'q': username}))
Esempio n. 11
0
def SearchDestinyPlayer(username, accounttype=None):
  if not accounttype:
    accounttype = 'all'

  return fetch.Fetch('Destiny/SearchDestinyPlayer/%s/%s', accounttype, username)
Esempio n. 12
0
def HelloWorld():
  return fetch.Fetch('HelloWorld/')
Esempio n. 13
0
def GetSpecialEventAdvisors():
  return fetch.Fetch('Destiny/Events/')
Esempio n. 14
0
def GetPublicXurVendor():
  return fetch.Fetch('Destiny/Advisors/Xur/')
Esempio n. 15
0
def GetPublicAdvisors():
  return fetch.Fetch('Destiny/Advisors/')
Esempio n. 16
0
def GetAvailableLocales():
  return fetch.Fetch('GetAvailableLocales/')
Esempio n. 17
0
def GetBungieAccount(profileid):
  return fetch.Fetch('User/GetBungieAccount/%s/0/', profileid)
Esempio n. 18
0
def GetAccount(accounttype, accountid):
  return fetch.Fetch('Destiny/%s/Account/%i/', accounttype, accountid)
Esempio n. 19
0
def GetCharacterActivities(accounttype, accountid, charid):
  return fetch.Fetch('Destiny/%s/Account/%s/Character/%i/Activities/', accounttype, accountid,
                     charid)
Esempio n. 20
0
def GetAccountSummary(accounttype, accountid):
  return fetch.Fetch('Destiny/%s/Account/%i/Summary/', accounttype, accountid)
Esempio n. 21
0
def GetCharacterProgression(accounttype, accountid, charid):
  return fetch.Fetch('Destiny/%s/Account/%i/Character/%i/Progression/', accounttype, accountid,
                     charid)
Esempio n. 22
0
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)
Esempio n. 23
0
def GetCurrentUser():
  return fetch.Fetch('User/GetBungieNetUser/')
Esempio n. 24
0
def GetAdminsOfGroup(groupid):
  return fetch.Fetch('Group/%s/Admins/', groupid)
Esempio n. 25
0
def GetDestinyManifest():
  return fetch.Fetch('Destiny/Manifest/')
Esempio n. 26
0
def GetAdvisorsForCurrentCharacter(accounttype, charid):
  return fetch.Fetch('Destiny/%s/MyAccount/Character/%s/Advisors/', accounttype, charid)
Esempio n. 27
0
def GetGlobalAlerts():
  return fetch.Fetch('GlobalAlerts/')
Esempio n. 28
0
def GetAllItemsSummary(accounttype, accountid):
  return fetch.Fetch('Destiny/%s/Account/%i/Items/', accounttype, accountid)
Esempio n. 29
0
def GetItemDetail(accounttype, accountid, charid, itemid):
  return fetch.Fetch('Destiny/%s/Account/%s/Character/%s/Inventory/%s/', accounttype, accountid,
                     charid, itemid)
Esempio n. 30
0
def GetMyGrimoire(accounttype):
  return fetch.Fetch('Destiny/Vanguard/Grimoire/%s/', accounttype)