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,243 @@
|
|
|
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 TournamentApi:
|
|
7
|
+
def __init__(self, http: HttpClient):
|
|
8
|
+
self.http = http
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
async def create_tournament_code(
|
|
12
|
+
self,
|
|
13
|
+
region: str,
|
|
14
|
+
|
|
15
|
+
tournamentId: int,
|
|
16
|
+
|
|
17
|
+
count: int = None,
|
|
18
|
+
|
|
19
|
+
) -> List[str]:
|
|
20
|
+
"""
|
|
21
|
+
Create a tournament code for the given tournament.
|
|
22
|
+
"""
|
|
23
|
+
path = "/lol/tournament/v5/codes"
|
|
24
|
+
# Replace path params
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# Query params
|
|
28
|
+
params = {
|
|
29
|
+
|
|
30
|
+
"tournamentId": tournamentId,
|
|
31
|
+
|
|
32
|
+
"count": count,
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
# Filter None
|
|
36
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
37
|
+
|
|
38
|
+
response = await self.http.request(
|
|
39
|
+
method="POST",
|
|
40
|
+
url=path,
|
|
41
|
+
region_or_platform=region,
|
|
42
|
+
params=params
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
from pydantic import TypeAdapter
|
|
46
|
+
return TypeAdapter(List[str]).validate_python(response.json())
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
async def get_tournament_code(
|
|
50
|
+
self,
|
|
51
|
+
region: str,
|
|
52
|
+
|
|
53
|
+
tournamentCode: str,
|
|
54
|
+
|
|
55
|
+
) -> tournament_v5_TournamentCodeV5DTO:
|
|
56
|
+
"""
|
|
57
|
+
Returns the tournament code DTO associated with a tournament code string.
|
|
58
|
+
"""
|
|
59
|
+
path = "/lol/tournament/v5/codes/{tournamentCode}"
|
|
60
|
+
# Replace path params
|
|
61
|
+
|
|
62
|
+
path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# Query params
|
|
66
|
+
params = {
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
# Filter None
|
|
70
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
71
|
+
|
|
72
|
+
response = await self.http.request(
|
|
73
|
+
method="GET",
|
|
74
|
+
url=path,
|
|
75
|
+
region_or_platform=region,
|
|
76
|
+
params=params
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
from pydantic import TypeAdapter
|
|
80
|
+
return TypeAdapter(tournament_v5_TournamentCodeV5DTO).validate_python(response.json())
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
async def update_code(
|
|
84
|
+
self,
|
|
85
|
+
region: str,
|
|
86
|
+
|
|
87
|
+
tournamentCode: str,
|
|
88
|
+
|
|
89
|
+
) -> None:
|
|
90
|
+
"""
|
|
91
|
+
Update the pick type, map, spectator type, or allowed puuids for a code.
|
|
92
|
+
"""
|
|
93
|
+
path = "/lol/tournament/v5/codes/{tournamentCode}"
|
|
94
|
+
# Replace path params
|
|
95
|
+
|
|
96
|
+
path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
# Query params
|
|
100
|
+
params = {
|
|
101
|
+
|
|
102
|
+
}
|
|
103
|
+
# Filter None
|
|
104
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
105
|
+
|
|
106
|
+
response = await self.http.request(
|
|
107
|
+
method="PUT",
|
|
108
|
+
url=path,
|
|
109
|
+
region_or_platform=region,
|
|
110
|
+
params=params
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
return response.json()
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
async def get_games(
|
|
117
|
+
self,
|
|
118
|
+
region: str,
|
|
119
|
+
|
|
120
|
+
tournamentCode: str,
|
|
121
|
+
|
|
122
|
+
) -> List[tournament_v5_TournamentGamesV5]:
|
|
123
|
+
"""
|
|
124
|
+
Get games details
|
|
125
|
+
"""
|
|
126
|
+
path = "/lol/tournament/v5/games/by-code/{tournamentCode}"
|
|
127
|
+
# Replace path params
|
|
128
|
+
|
|
129
|
+
path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
# Query params
|
|
133
|
+
params = {
|
|
134
|
+
|
|
135
|
+
}
|
|
136
|
+
# Filter None
|
|
137
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
138
|
+
|
|
139
|
+
response = await self.http.request(
|
|
140
|
+
method="GET",
|
|
141
|
+
url=path,
|
|
142
|
+
region_or_platform=region,
|
|
143
|
+
params=params
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
from pydantic import TypeAdapter
|
|
147
|
+
return TypeAdapter(List[tournament_v5_TournamentGamesV5]).validate_python(response.json())
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
async def get_lobby_events_by_code(
|
|
151
|
+
self,
|
|
152
|
+
region: str,
|
|
153
|
+
|
|
154
|
+
tournamentCode: str,
|
|
155
|
+
|
|
156
|
+
) -> tournament_v5_LobbyEventV5DTOWrapper:
|
|
157
|
+
"""
|
|
158
|
+
Gets a list of lobby events by tournament code.
|
|
159
|
+
"""
|
|
160
|
+
path = "/lol/tournament/v5/lobby-events/by-code/{tournamentCode}"
|
|
161
|
+
# Replace path params
|
|
162
|
+
|
|
163
|
+
path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
# Query params
|
|
167
|
+
params = {
|
|
168
|
+
|
|
169
|
+
}
|
|
170
|
+
# Filter None
|
|
171
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
172
|
+
|
|
173
|
+
response = await self.http.request(
|
|
174
|
+
method="GET",
|
|
175
|
+
url=path,
|
|
176
|
+
region_or_platform=region,
|
|
177
|
+
params=params
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
from pydantic import TypeAdapter
|
|
181
|
+
return TypeAdapter(tournament_v5_LobbyEventV5DTOWrapper).validate_python(response.json())
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
async def register_provider_data(
|
|
185
|
+
self,
|
|
186
|
+
region: str,
|
|
187
|
+
|
|
188
|
+
) -> int:
|
|
189
|
+
"""
|
|
190
|
+
Creates a tournament provider and returns its ID.
|
|
191
|
+
"""
|
|
192
|
+
path = "/lol/tournament/v5/providers"
|
|
193
|
+
# Replace path params
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
# Query params
|
|
197
|
+
params = {
|
|
198
|
+
|
|
199
|
+
}
|
|
200
|
+
# Filter None
|
|
201
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
202
|
+
|
|
203
|
+
response = await self.http.request(
|
|
204
|
+
method="POST",
|
|
205
|
+
url=path,
|
|
206
|
+
region_or_platform=region,
|
|
207
|
+
params=params
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
from pydantic import TypeAdapter
|
|
211
|
+
return TypeAdapter(int).validate_python(response.json())
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
async def register_tournament(
|
|
215
|
+
self,
|
|
216
|
+
region: str,
|
|
217
|
+
|
|
218
|
+
) -> int:
|
|
219
|
+
"""
|
|
220
|
+
Creates a tournament and returns its ID.
|
|
221
|
+
"""
|
|
222
|
+
path = "/lol/tournament/v5/tournaments"
|
|
223
|
+
# Replace path params
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
# Query params
|
|
227
|
+
params = {
|
|
228
|
+
|
|
229
|
+
}
|
|
230
|
+
# Filter None
|
|
231
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
232
|
+
|
|
233
|
+
response = await self.http.request(
|
|
234
|
+
method="POST",
|
|
235
|
+
url=path,
|
|
236
|
+
region_or_platform=region,
|
|
237
|
+
params=params
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
from pydantic import TypeAdapter
|
|
241
|
+
return TypeAdapter(int).validate_python(response.json())
|
|
242
|
+
|
|
243
|
+
|
|
@@ -0,0 +1,176 @@
|
|
|
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 Tournament_stubApi:
|
|
7
|
+
def __init__(self, http: HttpClient):
|
|
8
|
+
self.http = http
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
async def create_tournament_code(
|
|
12
|
+
self,
|
|
13
|
+
region: str,
|
|
14
|
+
|
|
15
|
+
tournamentId: int,
|
|
16
|
+
|
|
17
|
+
count: int = None,
|
|
18
|
+
|
|
19
|
+
) -> List[str]:
|
|
20
|
+
"""
|
|
21
|
+
Create a tournament code for the given tournament - Stub method
|
|
22
|
+
"""
|
|
23
|
+
path = "/lol/tournament-stub/v5/codes"
|
|
24
|
+
# Replace path params
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# Query params
|
|
28
|
+
params = {
|
|
29
|
+
|
|
30
|
+
"tournamentId": tournamentId,
|
|
31
|
+
|
|
32
|
+
"count": count,
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
# Filter None
|
|
36
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
37
|
+
|
|
38
|
+
response = await self.http.request(
|
|
39
|
+
method="POST",
|
|
40
|
+
url=path,
|
|
41
|
+
region_or_platform=region,
|
|
42
|
+
params=params
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
from pydantic import TypeAdapter
|
|
46
|
+
return TypeAdapter(List[str]).validate_python(response.json())
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
async def get_tournament_code(
|
|
50
|
+
self,
|
|
51
|
+
region: str,
|
|
52
|
+
|
|
53
|
+
tournamentCode: str,
|
|
54
|
+
|
|
55
|
+
) -> tournament_stub_v5_TournamentCodeV5DTO:
|
|
56
|
+
"""
|
|
57
|
+
Returns the tournament code DTO associated with a tournament code string - Stub Method
|
|
58
|
+
"""
|
|
59
|
+
path = "/lol/tournament-stub/v5/codes/{tournamentCode}"
|
|
60
|
+
# Replace path params
|
|
61
|
+
|
|
62
|
+
path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# Query params
|
|
66
|
+
params = {
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
# Filter None
|
|
70
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
71
|
+
|
|
72
|
+
response = await self.http.request(
|
|
73
|
+
method="GET",
|
|
74
|
+
url=path,
|
|
75
|
+
region_or_platform=region,
|
|
76
|
+
params=params
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
from pydantic import TypeAdapter
|
|
80
|
+
return TypeAdapter(tournament_stub_v5_TournamentCodeV5DTO).validate_python(response.json())
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
async def get_lobby_events_by_code(
|
|
84
|
+
self,
|
|
85
|
+
region: str,
|
|
86
|
+
|
|
87
|
+
tournamentCode: str,
|
|
88
|
+
|
|
89
|
+
) -> tournament_stub_v5_LobbyEventV5DTOWrapper:
|
|
90
|
+
"""
|
|
91
|
+
Gets a list of lobby events by tournament code - Stub method
|
|
92
|
+
"""
|
|
93
|
+
path = "/lol/tournament-stub/v5/lobby-events/by-code/{tournamentCode}"
|
|
94
|
+
# Replace path params
|
|
95
|
+
|
|
96
|
+
path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
# Query params
|
|
100
|
+
params = {
|
|
101
|
+
|
|
102
|
+
}
|
|
103
|
+
# Filter None
|
|
104
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
105
|
+
|
|
106
|
+
response = await self.http.request(
|
|
107
|
+
method="GET",
|
|
108
|
+
url=path,
|
|
109
|
+
region_or_platform=region,
|
|
110
|
+
params=params
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
from pydantic import TypeAdapter
|
|
114
|
+
return TypeAdapter(tournament_stub_v5_LobbyEventV5DTOWrapper).validate_python(response.json())
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
async def register_provider_data(
|
|
118
|
+
self,
|
|
119
|
+
region: str,
|
|
120
|
+
|
|
121
|
+
) -> int:
|
|
122
|
+
"""
|
|
123
|
+
Creates a tournament provider and returns its ID - Stub method
|
|
124
|
+
"""
|
|
125
|
+
path = "/lol/tournament-stub/v5/providers"
|
|
126
|
+
# Replace path params
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
# Query params
|
|
130
|
+
params = {
|
|
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="POST",
|
|
138
|
+
url=path,
|
|
139
|
+
region_or_platform=region,
|
|
140
|
+
params=params
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
from pydantic import TypeAdapter
|
|
144
|
+
return TypeAdapter(int).validate_python(response.json())
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
async def register_tournament(
|
|
148
|
+
self,
|
|
149
|
+
region: str,
|
|
150
|
+
|
|
151
|
+
) -> int:
|
|
152
|
+
"""
|
|
153
|
+
Creates a tournament and returns its ID - Stub method
|
|
154
|
+
"""
|
|
155
|
+
path = "/lol/tournament-stub/v5/tournaments"
|
|
156
|
+
# Replace path params
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
# Query params
|
|
160
|
+
params = {
|
|
161
|
+
|
|
162
|
+
}
|
|
163
|
+
# Filter None
|
|
164
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
165
|
+
|
|
166
|
+
response = await self.http.request(
|
|
167
|
+
method="POST",
|
|
168
|
+
url=path,
|
|
169
|
+
region_or_platform=region,
|
|
170
|
+
params=params
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
from pydantic import TypeAdapter
|
|
174
|
+
return TypeAdapter(int).validate_python(response.json())
|
|
175
|
+
|
|
176
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
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 Val-console-matchApi:
|
|
8
|
+
def __init__(self, http: HttpClient):
|
|
9
|
+
self.http = http
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def get_match(
|
|
13
|
+
self,
|
|
14
|
+
region: str,
|
|
15
|
+
|
|
16
|
+
matchId: str,
|
|
17
|
+
|
|
18
|
+
) -> val-console-match-v1.MatchDto:
|
|
19
|
+
"""
|
|
20
|
+
Get match by id
|
|
21
|
+
"""
|
|
22
|
+
path = "/val/match/console/v1/matches/{matchId}"
|
|
23
|
+
# Replace path params
|
|
24
|
+
|
|
25
|
+
path = path.replace("{" + "matchId" + "}", str(matchId))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# Query params
|
|
29
|
+
params = {
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
# Filter None
|
|
33
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
34
|
+
|
|
35
|
+
response = await self.http.request(
|
|
36
|
+
method="GET",
|
|
37
|
+
url=path,
|
|
38
|
+
region_or_platform=region,
|
|
39
|
+
params=params
|
|
40
|
+
)
|
|
41
|
+
return response.json()
|
|
42
|
+
|
|
43
|
+
async def get_matchlist(
|
|
44
|
+
self,
|
|
45
|
+
region: str,
|
|
46
|
+
|
|
47
|
+
puuid: str,
|
|
48
|
+
|
|
49
|
+
platformType: str,
|
|
50
|
+
|
|
51
|
+
) -> val-console-match-v1.MatchlistDto:
|
|
52
|
+
"""
|
|
53
|
+
Get matchlist for games played by puuid and platform type
|
|
54
|
+
"""
|
|
55
|
+
path = "/val/match/console/v1/matchlists/by-puuid/{puuid}"
|
|
56
|
+
# Replace path params
|
|
57
|
+
|
|
58
|
+
path = path.replace("{" + "puuid" + "}", str(puuid))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
# Query params
|
|
62
|
+
params = {
|
|
63
|
+
|
|
64
|
+
"platformType": platformType,
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
# Filter None
|
|
68
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
69
|
+
|
|
70
|
+
response = await self.http.request(
|
|
71
|
+
method="GET",
|
|
72
|
+
url=path,
|
|
73
|
+
region_or_platform=region,
|
|
74
|
+
params=params
|
|
75
|
+
)
|
|
76
|
+
return response.json()
|
|
77
|
+
|
|
78
|
+
async def get_recent(
|
|
79
|
+
self,
|
|
80
|
+
region: str,
|
|
81
|
+
|
|
82
|
+
queue: str,
|
|
83
|
+
|
|
84
|
+
) -> val-console-match-v1.RecentMatchesDto:
|
|
85
|
+
"""
|
|
86
|
+
Get recent matches
|
|
87
|
+
"""
|
|
88
|
+
path = "/val/match/console/v1/recent-matches/by-queue/{queue}"
|
|
89
|
+
# Replace path params
|
|
90
|
+
|
|
91
|
+
path = path.replace("{" + "queue" + "}", str(queue))
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
# Query params
|
|
95
|
+
params = {
|
|
96
|
+
|
|
97
|
+
}
|
|
98
|
+
# Filter None
|
|
99
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
100
|
+
|
|
101
|
+
response = await self.http.request(
|
|
102
|
+
method="GET",
|
|
103
|
+
url=path,
|
|
104
|
+
region_or_platform=region,
|
|
105
|
+
params=params
|
|
106
|
+
)
|
|
107
|
+
return response.json()
|
|
108
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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 Val-console-rankedApi:
|
|
8
|
+
def __init__(self, http: HttpClient):
|
|
9
|
+
self.http = http
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def get_leaderboard(
|
|
13
|
+
self,
|
|
14
|
+
region: str,
|
|
15
|
+
|
|
16
|
+
actId: str,
|
|
17
|
+
|
|
18
|
+
platformType: str,
|
|
19
|
+
|
|
20
|
+
startIndex: int = None,
|
|
21
|
+
|
|
22
|
+
size: int = None,
|
|
23
|
+
|
|
24
|
+
) -> val-console-ranked-v1.LeaderboardDto:
|
|
25
|
+
"""
|
|
26
|
+
Get leaderboard for the competitive queue
|
|
27
|
+
"""
|
|
28
|
+
path = "/val/console/ranked/v1/leaderboards/by-act/{actId}"
|
|
29
|
+
# Replace path params
|
|
30
|
+
|
|
31
|
+
path = path.replace("{" + "actId" + "}", str(actId))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# Query params
|
|
35
|
+
params = {
|
|
36
|
+
|
|
37
|
+
"platformType": platformType,
|
|
38
|
+
|
|
39
|
+
"startIndex": startIndex,
|
|
40
|
+
|
|
41
|
+
"size": size,
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
# Filter None
|
|
45
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
46
|
+
|
|
47
|
+
response = await self.http.request(
|
|
48
|
+
method="GET",
|
|
49
|
+
url=path,
|
|
50
|
+
region_or_platform=region,
|
|
51
|
+
params=params
|
|
52
|
+
)
|
|
53
|
+
return response.json()
|
|
54
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
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 Val-contentApi:
|
|
8
|
+
def __init__(self, http: HttpClient):
|
|
9
|
+
self.http = http
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def get_content(
|
|
13
|
+
self,
|
|
14
|
+
region: str,
|
|
15
|
+
|
|
16
|
+
locale: str = None,
|
|
17
|
+
|
|
18
|
+
) -> val-content-v1.ContentDto:
|
|
19
|
+
"""
|
|
20
|
+
Get content optionally filtered by locale
|
|
21
|
+
"""
|
|
22
|
+
path = "/val/content/v1/contents"
|
|
23
|
+
# Replace path params
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# Query params
|
|
27
|
+
params = {
|
|
28
|
+
|
|
29
|
+
"locale": locale,
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
# Filter None
|
|
33
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
34
|
+
|
|
35
|
+
response = await self.http.request(
|
|
36
|
+
method="GET",
|
|
37
|
+
url=path,
|
|
38
|
+
region_or_platform=region,
|
|
39
|
+
params=params
|
|
40
|
+
)
|
|
41
|
+
return response.json()
|
|
42
|
+
|