riotskillissue 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- riotskillissue/__init__.py +5 -0
- riotskillissue/api/__init__.py +0 -0
- riotskillissue/api/client_mixin.py +131 -0
- riotskillissue/api/endpoints/account.py +188 -0
- riotskillissue/api/endpoints/champion-mastery.py +143 -0
- riotskillissue/api/endpoints/champion.py +40 -0
- riotskillissue/api/endpoints/champion_mastery.py +154 -0
- riotskillissue/api/endpoints/clash.py +176 -0
- riotskillissue/api/endpoints/league-exp.py +54 -0
- riotskillissue/api/endpoints/league.py +226 -0
- riotskillissue/api/endpoints/league_exp.py +56 -0
- riotskillissue/api/endpoints/lol-challenges.py +197 -0
- riotskillissue/api/endpoints/lol-rso-match.py +124 -0
- riotskillissue/api/endpoints/lol-status.py +38 -0
- riotskillissue/api/endpoints/lol_challenges.py +214 -0
- riotskillissue/api/endpoints/lol_rso_match.py +132 -0
- riotskillissue/api/endpoints/lol_status.py +40 -0
- riotskillissue/api/endpoints/lor-deck.py +65 -0
- riotskillissue/api/endpoints/lor-inventory.py +38 -0
- riotskillissue/api/endpoints/lor-match.py +73 -0
- riotskillissue/api/endpoints/lor-ranked.py +38 -0
- riotskillissue/api/endpoints/lor-status.py +38 -0
- riotskillissue/api/endpoints/lor_deck.py +70 -0
- riotskillissue/api/endpoints/lor_inventory.py +40 -0
- riotskillissue/api/endpoints/lor_match.py +78 -0
- riotskillissue/api/endpoints/lor_ranked.py +40 -0
- riotskillissue/api/endpoints/lor_status.py +40 -0
- riotskillissue/api/endpoints/match.py +170 -0
- riotskillissue/api/endpoints/riftbound-content.py +42 -0
- riotskillissue/api/endpoints/riftbound_content.py +44 -0
- riotskillissue/api/endpoints/spectator-tft.py +42 -0
- riotskillissue/api/endpoints/spectator.py +44 -0
- riotskillissue/api/endpoints/spectator_tft.py +44 -0
- riotskillissue/api/endpoints/summoner.py +74 -0
- riotskillissue/api/endpoints/tft-league.py +240 -0
- riotskillissue/api/endpoints/tft-match.py +89 -0
- riotskillissue/api/endpoints/tft-status.py +38 -0
- riotskillissue/api/endpoints/tft-summoner.py +69 -0
- riotskillissue/api/endpoints/tft_league.py +260 -0
- riotskillissue/api/endpoints/tft_match.py +94 -0
- riotskillissue/api/endpoints/tft_status.py +40 -0
- riotskillissue/api/endpoints/tft_summoner.py +74 -0
- riotskillissue/api/endpoints/tournament-stub.py +162 -0
- riotskillissue/api/endpoints/tournament.py +243 -0
- riotskillissue/api/endpoints/tournament_stub.py +176 -0
- riotskillissue/api/endpoints/val-console-match.py +108 -0
- riotskillissue/api/endpoints/val-console-ranked.py +54 -0
- riotskillissue/api/endpoints/val-content.py +42 -0
- riotskillissue/api/endpoints/val-match.py +104 -0
- riotskillissue/api/endpoints/val-ranked.py +50 -0
- riotskillissue/api/endpoints/val-status.py +38 -0
- riotskillissue/api/endpoints/val_console_match.py +116 -0
- riotskillissue/api/endpoints/val_console_ranked.py +56 -0
- riotskillissue/api/endpoints/val_content.py +44 -0
- riotskillissue/api/endpoints/val_match.py +112 -0
- riotskillissue/api/endpoints/val_ranked.py +52 -0
- riotskillissue/api/endpoints/val_status.py +40 -0
- riotskillissue/api/models.py +4295 -0
- riotskillissue/auth.py +76 -0
- riotskillissue/cli.py +84 -0
- riotskillissue/core/cache.py +60 -0
- riotskillissue/core/client.py +47 -0
- riotskillissue/core/config.py +19 -0
- riotskillissue/core/http.py +144 -0
- riotskillissue/core/pagination.py +63 -0
- riotskillissue/core/ratelimit.py +185 -0
- riotskillissue/core/types.py +57 -0
- riotskillissue/core/utils.py +25 -0
- riotskillissue/static.py +71 -0
- riotskillissue/testing.py +46 -0
- riotskillissue-0.1.0.dist-info/METADATA +29 -0
- riotskillissue-0.1.0.dist-info/RECORD +75 -0
- riotskillissue-0.1.0.dist-info/WHEEL +4 -0
- riotskillissue-0.1.0.dist-info/entry_points.txt +2 -0
- riotskillissue-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Generated Code. Do not edit.
|
|
2
|
+
from typing import Optional, List, Dict, Any
|
|
3
|
+
from riot.core.http import HttpClient
|
|
4
|
+
from riot.core.types import Region, Platform
|
|
5
|
+
from riot.api.models import *
|
|
6
|
+
|
|
7
|
+
class Lol-rso-matchApi:
|
|
8
|
+
def __init__(self, http: HttpClient):
|
|
9
|
+
self.http = http
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def get_match_ids(
|
|
13
|
+
self,
|
|
14
|
+
region: str,
|
|
15
|
+
|
|
16
|
+
count: int = None,
|
|
17
|
+
|
|
18
|
+
start: int = None,
|
|
19
|
+
|
|
20
|
+
type: str = None,
|
|
21
|
+
|
|
22
|
+
queue: int = None,
|
|
23
|
+
|
|
24
|
+
endTime: int = None,
|
|
25
|
+
|
|
26
|
+
startTime: int = None,
|
|
27
|
+
|
|
28
|
+
) -> List[str]:
|
|
29
|
+
"""
|
|
30
|
+
Get a list of match ids by player access token - Includes custom matches
|
|
31
|
+
"""
|
|
32
|
+
path = "/lol/rso-match/v1/matches/ids"
|
|
33
|
+
# Replace path params
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# Query params
|
|
37
|
+
params = {
|
|
38
|
+
|
|
39
|
+
"count": count,
|
|
40
|
+
|
|
41
|
+
"start": start,
|
|
42
|
+
|
|
43
|
+
"type": type,
|
|
44
|
+
|
|
45
|
+
"queue": queue,
|
|
46
|
+
|
|
47
|
+
"endTime": endTime,
|
|
48
|
+
|
|
49
|
+
"startTime": startTime,
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
# Filter None
|
|
53
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
54
|
+
|
|
55
|
+
response = await self.http.request(
|
|
56
|
+
method="GET",
|
|
57
|
+
url=path,
|
|
58
|
+
region_or_platform=region,
|
|
59
|
+
params=params
|
|
60
|
+
)
|
|
61
|
+
return response.json()
|
|
62
|
+
|
|
63
|
+
async def get_match(
|
|
64
|
+
self,
|
|
65
|
+
region: str,
|
|
66
|
+
|
|
67
|
+
matchId: str,
|
|
68
|
+
|
|
69
|
+
) -> match-v5.MatchDto:
|
|
70
|
+
"""
|
|
71
|
+
Get a match by match id
|
|
72
|
+
"""
|
|
73
|
+
path = "/lol/rso-match/v1/matches/{matchId}"
|
|
74
|
+
# Replace path params
|
|
75
|
+
|
|
76
|
+
path = path.replace("{" + "matchId" + "}", str(matchId))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# Query params
|
|
80
|
+
params = {
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
# Filter None
|
|
84
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
85
|
+
|
|
86
|
+
response = await self.http.request(
|
|
87
|
+
method="GET",
|
|
88
|
+
url=path,
|
|
89
|
+
region_or_platform=region,
|
|
90
|
+
params=params
|
|
91
|
+
)
|
|
92
|
+
return response.json()
|
|
93
|
+
|
|
94
|
+
async def get_timeline(
|
|
95
|
+
self,
|
|
96
|
+
region: str,
|
|
97
|
+
|
|
98
|
+
matchId: str,
|
|
99
|
+
|
|
100
|
+
) -> match-v5.TimelineDto:
|
|
101
|
+
"""
|
|
102
|
+
Get a match timeline by match id
|
|
103
|
+
"""
|
|
104
|
+
path = "/lol/rso-match/v1/matches/{matchId}/timeline"
|
|
105
|
+
# Replace path params
|
|
106
|
+
|
|
107
|
+
path = path.replace("{" + "matchId" + "}", str(matchId))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# Query params
|
|
111
|
+
params = {
|
|
112
|
+
|
|
113
|
+
}
|
|
114
|
+
# Filter None
|
|
115
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
116
|
+
|
|
117
|
+
response = await self.http.request(
|
|
118
|
+
method="GET",
|
|
119
|
+
url=path,
|
|
120
|
+
region_or_platform=region,
|
|
121
|
+
params=params
|
|
122
|
+
)
|
|
123
|
+
return response.json()
|
|
124
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Generated Code. Do not edit.
|
|
2
|
+
from typing import Optional, List, Dict, Any
|
|
3
|
+
from riot.core.http import HttpClient
|
|
4
|
+
from riot.core.types import Region, Platform
|
|
5
|
+
from riot.api.models import *
|
|
6
|
+
|
|
7
|
+
class Lol-statusApi:
|
|
8
|
+
def __init__(self, http: HttpClient):
|
|
9
|
+
self.http = http
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def get_platform_data(
|
|
13
|
+
self,
|
|
14
|
+
region: str,
|
|
15
|
+
|
|
16
|
+
) -> lol-status-v4.PlatformDataDto:
|
|
17
|
+
"""
|
|
18
|
+
Get League of Legends status for the given platform.
|
|
19
|
+
"""
|
|
20
|
+
path = "/lol/status/v4/platform-data"
|
|
21
|
+
# Replace path params
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# Query params
|
|
25
|
+
params = {
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
# Filter None
|
|
29
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
30
|
+
|
|
31
|
+
response = await self.http.request(
|
|
32
|
+
method="GET",
|
|
33
|
+
url=path,
|
|
34
|
+
region_or_platform=region,
|
|
35
|
+
params=params
|
|
36
|
+
)
|
|
37
|
+
return response.json()
|
|
38
|
+
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# Generated Code. Do not edit.
|
|
2
|
+
from typing import Optional, List, Dict, Any
|
|
3
|
+
from riotskillissue.core.http import HttpClient
|
|
4
|
+
from riotskillissue.api.models import *
|
|
5
|
+
|
|
6
|
+
class Lol_challengesApi:
|
|
7
|
+
def __init__(self, http: HttpClient):
|
|
8
|
+
self.http = http
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
async def get_all_challenge_configs(
|
|
12
|
+
self,
|
|
13
|
+
region: str,
|
|
14
|
+
|
|
15
|
+
) -> List[lol_challenges_v1_ChallengeConfigInfoDto]:
|
|
16
|
+
"""
|
|
17
|
+
List of all basic challenge configuration information (includes all translations for names and descriptions)
|
|
18
|
+
"""
|
|
19
|
+
path = "/lol/challenges/v1/challenges/config"
|
|
20
|
+
# Replace path params
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# Query params
|
|
24
|
+
params = {
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
# Filter None
|
|
28
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
29
|
+
|
|
30
|
+
response = await self.http.request(
|
|
31
|
+
method="GET",
|
|
32
|
+
url=path,
|
|
33
|
+
region_or_platform=region,
|
|
34
|
+
params=params
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
from pydantic import TypeAdapter
|
|
38
|
+
return TypeAdapter(List[lol_challenges_v1_ChallengeConfigInfoDto]).validate_python(response.json())
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
async def get_all_challenge_percentiles(
|
|
42
|
+
self,
|
|
43
|
+
region: str,
|
|
44
|
+
|
|
45
|
+
) -> Dict[str, Dict[str, float]]:
|
|
46
|
+
"""
|
|
47
|
+
Map of level to percentile of players who have achieved it - keys: ChallengeId -> Season -> Level -> percentile of players who achieved it
|
|
48
|
+
"""
|
|
49
|
+
path = "/lol/challenges/v1/challenges/percentiles"
|
|
50
|
+
# Replace path params
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# Query params
|
|
54
|
+
params = {
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
# Filter None
|
|
58
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
59
|
+
|
|
60
|
+
response = await self.http.request(
|
|
61
|
+
method="GET",
|
|
62
|
+
url=path,
|
|
63
|
+
region_or_platform=region,
|
|
64
|
+
params=params
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
from pydantic import TypeAdapter
|
|
68
|
+
return TypeAdapter(Dict[str, Dict[str, float]]).validate_python(response.json())
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
async def get_challenge_configs(
|
|
72
|
+
self,
|
|
73
|
+
region: str,
|
|
74
|
+
|
|
75
|
+
challengeId: int,
|
|
76
|
+
|
|
77
|
+
) -> lol_challenges_v1_ChallengeConfigInfoDto:
|
|
78
|
+
"""
|
|
79
|
+
Get challenge configuration (REST)
|
|
80
|
+
"""
|
|
81
|
+
path = "/lol/challenges/v1/challenges/{challengeId}/config"
|
|
82
|
+
# Replace path params
|
|
83
|
+
|
|
84
|
+
path = path.replace("{" + "challengeId" + "}", str(challengeId))
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
# Query params
|
|
88
|
+
params = {
|
|
89
|
+
|
|
90
|
+
}
|
|
91
|
+
# Filter None
|
|
92
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
93
|
+
|
|
94
|
+
response = await self.http.request(
|
|
95
|
+
method="GET",
|
|
96
|
+
url=path,
|
|
97
|
+
region_or_platform=region,
|
|
98
|
+
params=params
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
from pydantic import TypeAdapter
|
|
102
|
+
return TypeAdapter(lol_challenges_v1_ChallengeConfigInfoDto).validate_python(response.json())
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
async def get_challenge_leaderboards(
|
|
106
|
+
self,
|
|
107
|
+
region: str,
|
|
108
|
+
|
|
109
|
+
challengeId: int,
|
|
110
|
+
|
|
111
|
+
level: str,
|
|
112
|
+
|
|
113
|
+
limit: int = None,
|
|
114
|
+
|
|
115
|
+
) -> List[lol_challenges_v1_ApexPlayerInfoDto]:
|
|
116
|
+
"""
|
|
117
|
+
Return top players for each level. Level must be MASTER, GRANDMASTER or CHALLENGER.
|
|
118
|
+
"""
|
|
119
|
+
path = "/lol/challenges/v1/challenges/{challengeId}/leaderboards/by-level/{level}"
|
|
120
|
+
# Replace path params
|
|
121
|
+
|
|
122
|
+
path = path.replace("{" + "challengeId" + "}", str(challengeId))
|
|
123
|
+
|
|
124
|
+
path = path.replace("{" + "level" + "}", str(level))
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
# Query params
|
|
128
|
+
params = {
|
|
129
|
+
|
|
130
|
+
"limit": limit,
|
|
131
|
+
|
|
132
|
+
}
|
|
133
|
+
# Filter None
|
|
134
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
135
|
+
|
|
136
|
+
response = await self.http.request(
|
|
137
|
+
method="GET",
|
|
138
|
+
url=path,
|
|
139
|
+
region_or_platform=region,
|
|
140
|
+
params=params
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
from pydantic import TypeAdapter
|
|
144
|
+
return TypeAdapter(List[lol_challenges_v1_ApexPlayerInfoDto]).validate_python(response.json())
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
async def get_challenge_percentiles(
|
|
148
|
+
self,
|
|
149
|
+
region: str,
|
|
150
|
+
|
|
151
|
+
challengeId: int,
|
|
152
|
+
|
|
153
|
+
) -> Dict[str, float]:
|
|
154
|
+
"""
|
|
155
|
+
Map of level to percentile of players who have achieved it
|
|
156
|
+
"""
|
|
157
|
+
path = "/lol/challenges/v1/challenges/{challengeId}/percentiles"
|
|
158
|
+
# Replace path params
|
|
159
|
+
|
|
160
|
+
path = path.replace("{" + "challengeId" + "}", str(challengeId))
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
# Query params
|
|
164
|
+
params = {
|
|
165
|
+
|
|
166
|
+
}
|
|
167
|
+
# Filter None
|
|
168
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
169
|
+
|
|
170
|
+
response = await self.http.request(
|
|
171
|
+
method="GET",
|
|
172
|
+
url=path,
|
|
173
|
+
region_or_platform=region,
|
|
174
|
+
params=params
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
from pydantic import TypeAdapter
|
|
178
|
+
return TypeAdapter(Dict[str, float]).validate_python(response.json())
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
async def get_player_data(
|
|
182
|
+
self,
|
|
183
|
+
region: str,
|
|
184
|
+
|
|
185
|
+
puuid: str,
|
|
186
|
+
|
|
187
|
+
) -> lol_challenges_v1_PlayerInfoDto:
|
|
188
|
+
"""
|
|
189
|
+
Returns player information with list of all progressed challenges (REST)
|
|
190
|
+
"""
|
|
191
|
+
path = "/lol/challenges/v1/player-data/{puuid}"
|
|
192
|
+
# Replace path params
|
|
193
|
+
|
|
194
|
+
path = path.replace("{" + "puuid" + "}", str(puuid))
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
# Query params
|
|
198
|
+
params = {
|
|
199
|
+
|
|
200
|
+
}
|
|
201
|
+
# Filter None
|
|
202
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
203
|
+
|
|
204
|
+
response = await self.http.request(
|
|
205
|
+
method="GET",
|
|
206
|
+
url=path,
|
|
207
|
+
region_or_platform=region,
|
|
208
|
+
params=params
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
from pydantic import TypeAdapter
|
|
212
|
+
return TypeAdapter(lol_challenges_v1_PlayerInfoDto).validate_python(response.json())
|
|
213
|
+
|
|
214
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Generated Code. Do not edit.
|
|
2
|
+
from typing import Optional, List, Dict, Any
|
|
3
|
+
from riotskillissue.core.http import HttpClient
|
|
4
|
+
from riotskillissue.api.models import *
|
|
5
|
+
|
|
6
|
+
class Lol_rso_matchApi:
|
|
7
|
+
def __init__(self, http: HttpClient):
|
|
8
|
+
self.http = http
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
async def get_match_ids(
|
|
12
|
+
self,
|
|
13
|
+
region: str,
|
|
14
|
+
|
|
15
|
+
count: int = None,
|
|
16
|
+
|
|
17
|
+
endTime: int = None,
|
|
18
|
+
|
|
19
|
+
queue: int = None,
|
|
20
|
+
|
|
21
|
+
start: int = None,
|
|
22
|
+
|
|
23
|
+
startTime: int = None,
|
|
24
|
+
|
|
25
|
+
type: str = None,
|
|
26
|
+
|
|
27
|
+
) -> List[str]:
|
|
28
|
+
"""
|
|
29
|
+
Get a list of match ids by player access token - Includes custom matches
|
|
30
|
+
"""
|
|
31
|
+
path = "/lol/rso-match/v1/matches/ids"
|
|
32
|
+
# Replace path params
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# Query params
|
|
36
|
+
params = {
|
|
37
|
+
|
|
38
|
+
"count": count,
|
|
39
|
+
|
|
40
|
+
"endTime": endTime,
|
|
41
|
+
|
|
42
|
+
"queue": queue,
|
|
43
|
+
|
|
44
|
+
"start": start,
|
|
45
|
+
|
|
46
|
+
"startTime": startTime,
|
|
47
|
+
|
|
48
|
+
"type": type,
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
# Filter None
|
|
52
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
53
|
+
|
|
54
|
+
response = await self.http.request(
|
|
55
|
+
method="GET",
|
|
56
|
+
url=path,
|
|
57
|
+
region_or_platform=region,
|
|
58
|
+
params=params
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
from pydantic import TypeAdapter
|
|
62
|
+
return TypeAdapter(List[str]).validate_python(response.json())
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
async def get_match(
|
|
66
|
+
self,
|
|
67
|
+
region: str,
|
|
68
|
+
|
|
69
|
+
matchId: str,
|
|
70
|
+
|
|
71
|
+
) -> match_v5_MatchDto:
|
|
72
|
+
"""
|
|
73
|
+
Get a match by match id
|
|
74
|
+
"""
|
|
75
|
+
path = "/lol/rso-match/v1/matches/{matchId}"
|
|
76
|
+
# Replace path params
|
|
77
|
+
|
|
78
|
+
path = path.replace("{" + "matchId" + "}", str(matchId))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# Query params
|
|
82
|
+
params = {
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
# Filter None
|
|
86
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
87
|
+
|
|
88
|
+
response = await self.http.request(
|
|
89
|
+
method="GET",
|
|
90
|
+
url=path,
|
|
91
|
+
region_or_platform=region,
|
|
92
|
+
params=params
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
from pydantic import TypeAdapter
|
|
96
|
+
return TypeAdapter(match_v5_MatchDto).validate_python(response.json())
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
async def get_timeline(
|
|
100
|
+
self,
|
|
101
|
+
region: str,
|
|
102
|
+
|
|
103
|
+
matchId: str,
|
|
104
|
+
|
|
105
|
+
) -> match_v5_TimelineDto:
|
|
106
|
+
"""
|
|
107
|
+
Get a match timeline by match id
|
|
108
|
+
"""
|
|
109
|
+
path = "/lol/rso-match/v1/matches/{matchId}/timeline"
|
|
110
|
+
# Replace path params
|
|
111
|
+
|
|
112
|
+
path = path.replace("{" + "matchId" + "}", str(matchId))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
# Query params
|
|
116
|
+
params = {
|
|
117
|
+
|
|
118
|
+
}
|
|
119
|
+
# Filter None
|
|
120
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
121
|
+
|
|
122
|
+
response = await self.http.request(
|
|
123
|
+
method="GET",
|
|
124
|
+
url=path,
|
|
125
|
+
region_or_platform=region,
|
|
126
|
+
params=params
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
from pydantic import TypeAdapter
|
|
130
|
+
return TypeAdapter(match_v5_TimelineDto).validate_python(response.json())
|
|
131
|
+
|
|
132
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generated Code. Do not edit.
|
|
2
|
+
from typing import Optional, List, Dict, Any
|
|
3
|
+
from riotskillissue.core.http import HttpClient
|
|
4
|
+
from riotskillissue.api.models import *
|
|
5
|
+
|
|
6
|
+
class Lol_statusApi:
|
|
7
|
+
def __init__(self, http: HttpClient):
|
|
8
|
+
self.http = http
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
async def get_platform_data(
|
|
12
|
+
self,
|
|
13
|
+
region: str,
|
|
14
|
+
|
|
15
|
+
) -> lol_status_v4_PlatformDataDto:
|
|
16
|
+
"""
|
|
17
|
+
Get League of Legends status for the given platform.
|
|
18
|
+
"""
|
|
19
|
+
path = "/lol/status/v4/platform-data"
|
|
20
|
+
# Replace path params
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# Query params
|
|
24
|
+
params = {
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
# Filter None
|
|
28
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
29
|
+
|
|
30
|
+
response = await self.http.request(
|
|
31
|
+
method="GET",
|
|
32
|
+
url=path,
|
|
33
|
+
region_or_platform=region,
|
|
34
|
+
params=params
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
from pydantic import TypeAdapter
|
|
38
|
+
return TypeAdapter(lol_status_v4_PlatformDataDto).validate_python(response.json())
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Generated Code. Do not edit.
|
|
2
|
+
from typing import Optional, List, Dict, Any
|
|
3
|
+
from riot.core.http import HttpClient
|
|
4
|
+
from riot.core.types import Region, Platform
|
|
5
|
+
from riot.api.models import *
|
|
6
|
+
|
|
7
|
+
class Lor-deckApi:
|
|
8
|
+
def __init__(self, http: HttpClient):
|
|
9
|
+
self.http = http
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def get_decks(
|
|
13
|
+
self,
|
|
14
|
+
region: str,
|
|
15
|
+
|
|
16
|
+
) -> List[lor-deck-v1.DeckDto]:
|
|
17
|
+
"""
|
|
18
|
+
Get a list of the calling user's decks.
|
|
19
|
+
"""
|
|
20
|
+
path = "/lor/deck/v1/decks/me"
|
|
21
|
+
# Replace path params
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# Query params
|
|
25
|
+
params = {
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
# Filter None
|
|
29
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
30
|
+
|
|
31
|
+
response = await self.http.request(
|
|
32
|
+
method="GET",
|
|
33
|
+
url=path,
|
|
34
|
+
region_or_platform=region,
|
|
35
|
+
params=params
|
|
36
|
+
)
|
|
37
|
+
return response.json()
|
|
38
|
+
|
|
39
|
+
async def create_deck(
|
|
40
|
+
self,
|
|
41
|
+
region: str,
|
|
42
|
+
|
|
43
|
+
) -> str:
|
|
44
|
+
"""
|
|
45
|
+
Create a new deck for the calling user.
|
|
46
|
+
"""
|
|
47
|
+
path = "/lor/deck/v1/decks/me"
|
|
48
|
+
# Replace path params
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# Query params
|
|
52
|
+
params = {
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
# Filter None
|
|
56
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
57
|
+
|
|
58
|
+
response = await self.http.request(
|
|
59
|
+
method="POST",
|
|
60
|
+
url=path,
|
|
61
|
+
region_or_platform=region,
|
|
62
|
+
params=params
|
|
63
|
+
)
|
|
64
|
+
return response.json()
|
|
65
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Generated Code. Do not edit.
|
|
2
|
+
from typing import Optional, List, Dict, Any
|
|
3
|
+
from riot.core.http import HttpClient
|
|
4
|
+
from riot.core.types import Region, Platform
|
|
5
|
+
from riot.api.models import *
|
|
6
|
+
|
|
7
|
+
class Lor-inventoryApi:
|
|
8
|
+
def __init__(self, http: HttpClient):
|
|
9
|
+
self.http = http
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def get_cards(
|
|
13
|
+
self,
|
|
14
|
+
region: str,
|
|
15
|
+
|
|
16
|
+
) -> List[lor-inventory-v1.CardDto]:
|
|
17
|
+
"""
|
|
18
|
+
Return a list of cards owned by the calling user.
|
|
19
|
+
"""
|
|
20
|
+
path = "/lor/inventory/v1/cards/me"
|
|
21
|
+
# Replace path params
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# Query params
|
|
25
|
+
params = {
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
# Filter None
|
|
29
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
30
|
+
|
|
31
|
+
response = await self.http.request(
|
|
32
|
+
method="GET",
|
|
33
|
+
url=path,
|
|
34
|
+
region_or_platform=region,
|
|
35
|
+
params=params
|
|
36
|
+
)
|
|
37
|
+
return response.json()
|
|
38
|
+
|