Comments (3)
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.
Thanks for your methode ^^
from riot-watcher.
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)
- Multiple API Keys HOT 1
- 400/401 Client Error HOT 11
- Different behaviour between summoner.by_name and official API HOT 2
- Expecting value: line 1 column 1 (char 0) HOT 2
- Error on matchlist_by_account HOT 1
- API back killParticipation is wrong HOT 1
- Does riot api support multiple ppuids? HOT 2
- Can 'region' be removed? HOT 3
- Add LOL-CHALLENGES-V1 Endpoint HOT 1
- .matchlist_by_puuid is returning the puuid provided instead of the list of matches
- Add the new SEA regions HOT 1
- Package is not pep561 compliant HOT 1
- Can't request for specific match type. HOT 5
- account-v1 getting puuid by_riot_id HOT 1
- champion_master is outdated, updated from encrypted_summoner_id to puuid HOT 1
- Spectator-V4 will be deprecated on April 5 HOT 1
- Asyncio integration? HOT 1
- Rewrite in Rust
- v4/summoners/by-name/ endpoint has been removed HOT 1
- Fix Mutable Default Arguments in Constructor And Correct Type Hints in Constructor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riot-watcher.