예제 #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)