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

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