Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #6
0
    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)
Beispiel #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)
Beispiel #8
0
    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))
Beispiel #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))
Beispiel #10
0
    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)
Beispiel #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')
Beispiel #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')
Beispiel #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)
Beispiel #14
0
    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)
Beispiel #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)
Beispiel #16
0
    def masterList(self, server="eu", locale="en_US"):

        self.route = '/wow/mount/'
        return Fetcher.fetchData(server=server,
                                 locale=locale,
                                 route=self.route)
Beispiel #17
0
    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)
Beispiel #18
0
    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)
Beispiel #19
0
    def getActIndex(self, server="eu", locale="en_US"):

        self.route = '/d3/data/act'
        return Fetcher.fetchData(
            server=server, locale=locale, route=self.route)
Beispiel #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)
Beispiel #21
0
    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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #25
0
    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)
Beispiel #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)
Beispiel #27
0
    def masterList(self, server="eu", locale="en_US"):

        return Fetcher.fetchData(
            server=server, locale=locale, route='/wow/boss/')
Beispiel #28
0
    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)
Beispiel #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)
Beispiel #30
0
    def getItemTypeIndex(self, server="eu", locale="en_US"):

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