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

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