示例#1
0
    def getCharacterClass(self,
                          server="eu",
                          classSlug='barbarian',
                          locale="en_US"):

        self.route = '/d3/data/hero/{}'.format(classSlug)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#2
0
    def realmLeaderboard(self,
                         server="eu",
                         realm="archimonde",
                         locale="en_US"):

        self.route = '/wow/challenge/{}'.format(realm)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#3
0
    def getItem(self,
                server="eu",
                itemSlugAndID='corrupted-ashbringer-Unique_Sword_2H_104_x1',
                locale="en_US"):

        self.route = '/d3/data/item/{}'.format(itemSlugAndID)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#4
0
    def characterProfile(self,
                         server="eu",
                         realm="archimonde",
                         characterName="Protòtype",
                         locale="en_US"):

        self.route = self.route.format(realm, characterName)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#5
0
    def getApiSkill(self,
                    server="eu",
                    classSlug='barbarian',
                    skillSlug='bash',
                    locale="en_US"):

        self.route = '/d3/data/hero/{}/skill/{}'.format(classSlug, skillSlug)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#6
0
文件: Profile.py 项目: DylanCa/PBAW
    def getApiDetailedHeroItems(self,
                                server="eu",
                                account="Prototype#2971",
                                hero="109407264",
                                locale="en_US"):

        self.route = '{}/items'.format(self.getRouteHero(account, hero))

        return Fetcher.fetchData(
            server=server, locale=locale, route=self.route)
示例#7
0
    def matchHistory(self,
                     server="eu",
                     accID=20443743,
                     region=1,
                     name="Prototype",
                     locale="en_US"):

        self.route = self.getRoute(accID, region, name) + 'matches'
        return Fetcher.fetchData(
            server=server, locale=locale, route=self.route)
示例#8
0
文件: Profile.py 项目: DylanCa/PBAW
    def getApiHero(self,
                   server="eu",
                   account="Prototype#2971",
                   hero="109407264",
                   locale="en_US"):

        return Fetcher.fetchData(
            server=server,
            locale=locale,
            route=self.getRouteHero(account, hero))
示例#9
0
    def profile(self,
                server="eu",
                accID=20443743,
                region=1,
                name="Prototype",
                locale="en_US"):

        return Fetcher.fetchData(
            server=server,
            locale=locale,
            route=self.getRoute(accID, region, name))
示例#10
0
文件: Profile.py 项目: DylanCa/PBAW
    def getApiAccount(self,
                      server="eu",
                      account="Prototype#2971",
                      locale="en_US"):

        self.route = '/d3/profile/{}%23{}/'.format(
            account.split("#")[0],
            account.split("#")[1])

        return Fetcher.fetchData(
            server=server, locale=locale, route=self.route)
示例#11
0
    def mounts(self,
               server="eu",
               realm="archimonde",
               characterName="Protòtype",
               locale="en_US"):

        self.route = self.route.format(realm, characterName)

        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route,
                                 params='fields=mounts')
示例#12
0
    def challenge(self,
                  server="eu",
                  realm="archimonde",
                  guildName="Jardiland",
                  locale="en_US"):

        self.route = self.route.format(realm, guildName)

        return Fetcher.fetchData(
            server=server,
            locale=locale,
            route=self.route,
            params='fields=challenge')
示例#13
0
    def itemSet(self, server="eu", setID=1060, locale="en_US"):

        self.route = '/wow/item/set/{}'.format(setID)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#14
0
文件: Recipe.py 项目: DylanCa/PBAW
    def recipe(self, server="eu", recipeID=33994, locale="en_US"):

        self.route = '/wow/recipe/{}'.format(recipeID)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#15
0
    def achievement(self, server="eu", achievementID="2144", locale="en_US"):

        self.route = '/wow/achievement/{}'.format(achievementID)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#16
0
文件: Mount.py 项目: DylanCa/PBAW
    def masterList(self, server="eu", locale="en_US"):

        self.route = '/wow/mount/'
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#17
0
文件: Pvp.py 项目: DylanCa/PBAW
    def leaderboards(self, server="eu", bracket="2v2", locale="en_US"):

        self.route = '/wow/leaderboard/{}'.format(bracket)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#18
0
文件: Act.py 项目: DylanCa/PBAW
    def getAct(self, server="eu", actID=1, locale="en_US"):

        self.route = '/d3/data/act/{}'.format(actID)
        return Fetcher.fetchData(
            server=server, locale=locale, route=self.route)
示例#19
0
文件: Act.py 项目: DylanCa/PBAW
    def getActIndex(self, server="eu", locale="en_US"):

        self.route = '/d3/data/act'
        return Fetcher.fetchData(
            server=server, locale=locale, route=self.route)
示例#20
0
    def boss(self, server="eu", bossID="24723", locale="en_US"):

        self.route = '/wow/boss/{}'.format(bossID)
        return Fetcher.fetchData(
            server=server, locale=locale, route=self.route)
示例#21
0
文件: Quest.py 项目: DylanCa/PBAW
    def quest(self, server="eu", questID=13146, locale="en_US"):

        self.route = '/wow/quest/{}'.format(questID)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#22
0
    def item(self, server="eu", itemID=18803, locale="en_US"):

        self.route = '/wow/item/{}'.format(itemID)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#23
0
    def realmStatus(self, server="eu", locale="en_US"):

        self.route = '/wow/realm/status'
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#24
0
    def rewards(self, server="eu", locale="en_US"):

        self.route = '/sc2/data/rewards'
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#25
0
文件: Ladder.py 项目: DylanCa/PBAW
    def ladder(self, server="eu", ladderID="655", locale="en_US"):

        self.route = '/sc2/ladder/{}'.format(ladderID)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#26
0
    def achievements(self, server="eu", locale="en_US"):

        self.route = '/sc2/data/achievements'
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#27
0
    def masterList(self, server="eu", locale="en_US"):

        return Fetcher.fetchData(
            server=server, locale=locale, route='/wow/boss/')
示例#28
0
文件: ItemType.py 项目: DylanCa/PBAW
    def getItemType(self, server="eu", itemSlug='sword2h', locale="en_US"):

        self.route = '/d3/data/item-type/{}'.format(itemSlug)
        return Fetcher.fetchData(
            server=server, locale=locale, route=self.route)
示例#29
0
    def spell(self, server="eu", spellID=8056, locale="en_US"):

        self.route = '/wow/spell/{}'.format(spellID)
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
示例#30
0
文件: ItemType.py 项目: DylanCa/PBAW
    def getItemTypeIndex(self, server="eu", locale="en_US"):

        self.route = '/d3/data/item-type'
        return Fetcher.fetchData(
            server=server, locale=locale, route=self.route)