Giter Site home page Giter Site logo

API outdated about riot-watcher HOT 3 CLOSED

pseudonym117 avatar pseudonym117 commented on September 15, 2024
API outdated

from riot-watcher.

Comments (3)

fab0l1n avatar fab0l1n commented on September 15, 2024 1

they changed the structure of the URL request so adding this properly into the watcher will be some work, but as a meantime solution add this to the RiotWatcher class:

def get_champion_mastery(self, sum_id, region=None):
    if region is None:
        region = self.default_region
    args = {'api_key': self.key}
    print(args)
    r = requests.get(
        'https://{proxy}.api.pvp.net/championmastery/location/{platformId}/player/{summonerId}/champions'.format(
            proxy=region,
            platformId=platforms[region],
            summonerId=sum_id
        ),
        params=args
    )
    for lim in self.limits:
        lim.add_request()
    raise_status(r)
    return r.json()

This should return all entries of of champion masteries for a single SummonerId (so it's the second one in the championmastery section). at least for me it works.

from riot-watcher.

i32ropie avatar i32ropie commented on September 15, 2024

Thanks for your methode ^^

from riot-watcher.

pseudonym117 avatar pseudonym117 commented on September 15, 2024

duplicate of issue #71 - that issue has more discussion and will be resolved soon. closing in favor of that defect. (also i have neglected these defects far too long)

from riot-watcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.