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,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 Spectator-tftApi:
|
|
8
|
+
def __init__(self, http: HttpClient):
|
|
9
|
+
self.http = http
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def get_current_game_info_by_puuid(
|
|
13
|
+
self,
|
|
14
|
+
region: str,
|
|
15
|
+
|
|
16
|
+
encryptedPUUID: str,
|
|
17
|
+
|
|
18
|
+
) -> spectator-tft-v5.CurrentGameInfo:
|
|
19
|
+
"""
|
|
20
|
+
Get current game information for the given puuid.
|
|
21
|
+
"""
|
|
22
|
+
path = "/lol/spectator/tft/v5/active-games/by-puuid/{encryptedPUUID}"
|
|
23
|
+
# Replace path params
|
|
24
|
+
|
|
25
|
+
path = path.replace("{" + "encryptedPUUID" + "}", str(encryptedPUUID))
|
|
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
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
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 SpectatorApi:
|
|
7
|
+
def __init__(self, http: HttpClient):
|
|
8
|
+
self.http = http
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
async def get_current_game_info_by_puuid(
|
|
12
|
+
self,
|
|
13
|
+
region: str,
|
|
14
|
+
|
|
15
|
+
encryptedPUUID: str,
|
|
16
|
+
|
|
17
|
+
) -> spectator_v5_CurrentGameInfo:
|
|
18
|
+
"""
|
|
19
|
+
Get current game information for the given puuid.
|
|
20
|
+
"""
|
|
21
|
+
path = "/lol/spectator/v5/active-games/by-summoner/{encryptedPUUID}"
|
|
22
|
+
# Replace path params
|
|
23
|
+
|
|
24
|
+
path = path.replace("{" + "encryptedPUUID" + "}", str(encryptedPUUID))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# Query params
|
|
28
|
+
params = {
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
# Filter None
|
|
32
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
33
|
+
|
|
34
|
+
response = await self.http.request(
|
|
35
|
+
method="GET",
|
|
36
|
+
url=path,
|
|
37
|
+
region_or_platform=region,
|
|
38
|
+
params=params
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
from pydantic import TypeAdapter
|
|
42
|
+
return TypeAdapter(spectator_v5_CurrentGameInfo).validate_python(response.json())
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
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 Spectator_tftApi:
|
|
7
|
+
def __init__(self, http: HttpClient):
|
|
8
|
+
self.http = http
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
async def get_current_game_info_by_puuid(
|
|
12
|
+
self,
|
|
13
|
+
region: str,
|
|
14
|
+
|
|
15
|
+
encryptedPUUID: str,
|
|
16
|
+
|
|
17
|
+
) -> spectator_tft_v5_CurrentGameInfo:
|
|
18
|
+
"""
|
|
19
|
+
Get current game information for the given puuid.
|
|
20
|
+
"""
|
|
21
|
+
path = "/lol/spectator/tft/v5/active-games/by-puuid/{encryptedPUUID}"
|
|
22
|
+
# Replace path params
|
|
23
|
+
|
|
24
|
+
path = path.replace("{" + "encryptedPUUID" + "}", str(encryptedPUUID))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# Query params
|
|
28
|
+
params = {
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
# Filter None
|
|
32
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
33
|
+
|
|
34
|
+
response = await self.http.request(
|
|
35
|
+
method="GET",
|
|
36
|
+
url=path,
|
|
37
|
+
region_or_platform=region,
|
|
38
|
+
params=params
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
from pydantic import TypeAdapter
|
|
42
|
+
return TypeAdapter(spectator_tft_v5_CurrentGameInfo).validate_python(response.json())
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 SummonerApi:
|
|
7
|
+
def __init__(self, http: HttpClient):
|
|
8
|
+
self.http = http
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
async def get_by_puuid(
|
|
12
|
+
self,
|
|
13
|
+
region: str,
|
|
14
|
+
|
|
15
|
+
encryptedPUUID: str,
|
|
16
|
+
|
|
17
|
+
) -> summoner_v4_SummonerDTO:
|
|
18
|
+
"""
|
|
19
|
+
Get a summoner by PUUID.
|
|
20
|
+
"""
|
|
21
|
+
path = "/lol/summoner/v4/summoners/by-puuid/{encryptedPUUID}"
|
|
22
|
+
# Replace path params
|
|
23
|
+
|
|
24
|
+
path = path.replace("{" + "encryptedPUUID" + "}", str(encryptedPUUID))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# Query params
|
|
28
|
+
params = {
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
# Filter None
|
|
32
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
33
|
+
|
|
34
|
+
response = await self.http.request(
|
|
35
|
+
method="GET",
|
|
36
|
+
url=path,
|
|
37
|
+
region_or_platform=region,
|
|
38
|
+
params=params
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
from pydantic import TypeAdapter
|
|
42
|
+
return TypeAdapter(summoner_v4_SummonerDTO).validate_python(response.json())
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
async def get_by_access_token(
|
|
46
|
+
self,
|
|
47
|
+
region: str,
|
|
48
|
+
|
|
49
|
+
) -> summoner_v4_SummonerDTO:
|
|
50
|
+
"""
|
|
51
|
+
Get a summoner by access token.
|
|
52
|
+
"""
|
|
53
|
+
path = "/lol/summoner/v4/summoners/me"
|
|
54
|
+
# Replace path params
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# Query params
|
|
58
|
+
params = {
|
|
59
|
+
|
|
60
|
+
}
|
|
61
|
+
# Filter None
|
|
62
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
63
|
+
|
|
64
|
+
response = await self.http.request(
|
|
65
|
+
method="GET",
|
|
66
|
+
url=path,
|
|
67
|
+
region_or_platform=region,
|
|
68
|
+
params=params
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
from pydantic import TypeAdapter
|
|
72
|
+
return TypeAdapter(summoner_v4_SummonerDTO).validate_python(response.json())
|
|
73
|
+
|
|
74
|
+
|
|
@@ -0,0 +1,240 @@
|
|
|
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 Tft-leagueApi:
|
|
8
|
+
def __init__(self, http: HttpClient):
|
|
9
|
+
self.http = http
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def get_league_entries_by_p_u_u_i_d(
|
|
13
|
+
self,
|
|
14
|
+
region: str,
|
|
15
|
+
|
|
16
|
+
puuid: str,
|
|
17
|
+
|
|
18
|
+
) -> List[tft-league-v1.LeagueEntryDTO]:
|
|
19
|
+
"""
|
|
20
|
+
Get league entries in all queues for a given puuid
|
|
21
|
+
"""
|
|
22
|
+
path = "/tft/league/v1/by-puuid/{puuid}"
|
|
23
|
+
# Replace path params
|
|
24
|
+
|
|
25
|
+
path = path.replace("{" + "puuid" + "}", str(puuid))
|
|
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_challenger_league(
|
|
44
|
+
self,
|
|
45
|
+
region: str,
|
|
46
|
+
|
|
47
|
+
queue: str = None,
|
|
48
|
+
|
|
49
|
+
) -> tft-league-v1.LeagueListDTO:
|
|
50
|
+
"""
|
|
51
|
+
Get the challenger league.
|
|
52
|
+
"""
|
|
53
|
+
path = "/tft/league/v1/challenger"
|
|
54
|
+
# Replace path params
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# Query params
|
|
58
|
+
params = {
|
|
59
|
+
|
|
60
|
+
"queue": queue,
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
# Filter None
|
|
64
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
65
|
+
|
|
66
|
+
response = await self.http.request(
|
|
67
|
+
method="GET",
|
|
68
|
+
url=path,
|
|
69
|
+
region_or_platform=region,
|
|
70
|
+
params=params
|
|
71
|
+
)
|
|
72
|
+
return response.json()
|
|
73
|
+
|
|
74
|
+
async def get_league_entries(
|
|
75
|
+
self,
|
|
76
|
+
region: str,
|
|
77
|
+
|
|
78
|
+
tier: str,
|
|
79
|
+
|
|
80
|
+
division: str,
|
|
81
|
+
|
|
82
|
+
queue: str = None,
|
|
83
|
+
|
|
84
|
+
page: int = None,
|
|
85
|
+
|
|
86
|
+
) -> List[tft-league-v1.LeagueEntryDTO]:
|
|
87
|
+
"""
|
|
88
|
+
Get all the league entries.
|
|
89
|
+
"""
|
|
90
|
+
path = "/tft/league/v1/entries/{tier}/{division}"
|
|
91
|
+
# Replace path params
|
|
92
|
+
|
|
93
|
+
path = path.replace("{" + "tier" + "}", str(tier))
|
|
94
|
+
|
|
95
|
+
path = path.replace("{" + "division" + "}", str(division))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# Query params
|
|
99
|
+
params = {
|
|
100
|
+
|
|
101
|
+
"queue": queue,
|
|
102
|
+
|
|
103
|
+
"page": page,
|
|
104
|
+
|
|
105
|
+
}
|
|
106
|
+
# Filter None
|
|
107
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
108
|
+
|
|
109
|
+
response = await self.http.request(
|
|
110
|
+
method="GET",
|
|
111
|
+
url=path,
|
|
112
|
+
region_or_platform=region,
|
|
113
|
+
params=params
|
|
114
|
+
)
|
|
115
|
+
return response.json()
|
|
116
|
+
|
|
117
|
+
async def get_grandmaster_league(
|
|
118
|
+
self,
|
|
119
|
+
region: str,
|
|
120
|
+
|
|
121
|
+
queue: str = None,
|
|
122
|
+
|
|
123
|
+
) -> tft-league-v1.LeagueListDTO:
|
|
124
|
+
"""
|
|
125
|
+
Get the grandmaster league.
|
|
126
|
+
"""
|
|
127
|
+
path = "/tft/league/v1/grandmaster"
|
|
128
|
+
# Replace path params
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
# Query params
|
|
132
|
+
params = {
|
|
133
|
+
|
|
134
|
+
"queue": queue,
|
|
135
|
+
|
|
136
|
+
}
|
|
137
|
+
# Filter None
|
|
138
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
139
|
+
|
|
140
|
+
response = await self.http.request(
|
|
141
|
+
method="GET",
|
|
142
|
+
url=path,
|
|
143
|
+
region_or_platform=region,
|
|
144
|
+
params=params
|
|
145
|
+
)
|
|
146
|
+
return response.json()
|
|
147
|
+
|
|
148
|
+
async def get_league_by_id(
|
|
149
|
+
self,
|
|
150
|
+
region: str,
|
|
151
|
+
|
|
152
|
+
leagueId: str,
|
|
153
|
+
|
|
154
|
+
) -> tft-league-v1.LeagueListDTO:
|
|
155
|
+
"""
|
|
156
|
+
Get league with given ID, including inactive entries.
|
|
157
|
+
"""
|
|
158
|
+
path = "/tft/league/v1/leagues/{leagueId}"
|
|
159
|
+
# Replace path params
|
|
160
|
+
|
|
161
|
+
path = path.replace("{" + "leagueId" + "}", str(leagueId))
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
# Query params
|
|
165
|
+
params = {
|
|
166
|
+
|
|
167
|
+
}
|
|
168
|
+
# Filter None
|
|
169
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
170
|
+
|
|
171
|
+
response = await self.http.request(
|
|
172
|
+
method="GET",
|
|
173
|
+
url=path,
|
|
174
|
+
region_or_platform=region,
|
|
175
|
+
params=params
|
|
176
|
+
)
|
|
177
|
+
return response.json()
|
|
178
|
+
|
|
179
|
+
async def get_master_league(
|
|
180
|
+
self,
|
|
181
|
+
region: str,
|
|
182
|
+
|
|
183
|
+
queue: str = None,
|
|
184
|
+
|
|
185
|
+
) -> tft-league-v1.LeagueListDTO:
|
|
186
|
+
"""
|
|
187
|
+
Get the master league.
|
|
188
|
+
"""
|
|
189
|
+
path = "/tft/league/v1/master"
|
|
190
|
+
# Replace path params
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
# Query params
|
|
194
|
+
params = {
|
|
195
|
+
|
|
196
|
+
"queue": queue,
|
|
197
|
+
|
|
198
|
+
}
|
|
199
|
+
# Filter None
|
|
200
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
201
|
+
|
|
202
|
+
response = await self.http.request(
|
|
203
|
+
method="GET",
|
|
204
|
+
url=path,
|
|
205
|
+
region_or_platform=region,
|
|
206
|
+
params=params
|
|
207
|
+
)
|
|
208
|
+
return response.json()
|
|
209
|
+
|
|
210
|
+
async def get_top_rated_ladder(
|
|
211
|
+
self,
|
|
212
|
+
region: str,
|
|
213
|
+
|
|
214
|
+
queue: str,
|
|
215
|
+
|
|
216
|
+
) -> List[tft-league-v1.TopRatedLadderEntryDto]:
|
|
217
|
+
"""
|
|
218
|
+
Get the top rated ladder for given queue
|
|
219
|
+
"""
|
|
220
|
+
path = "/tft/league/v1/rated-ladders/{queue}/top"
|
|
221
|
+
# Replace path params
|
|
222
|
+
|
|
223
|
+
path = path.replace("{" + "queue" + "}", str(queue))
|
|
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="GET",
|
|
235
|
+
url=path,
|
|
236
|
+
region_or_platform=region,
|
|
237
|
+
params=params
|
|
238
|
+
)
|
|
239
|
+
return response.json()
|
|
240
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 Tft-matchApi:
|
|
8
|
+
def __init__(self, http: HttpClient):
|
|
9
|
+
self.http = http
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def get_match_ids_by_p_u_u_i_d(
|
|
13
|
+
self,
|
|
14
|
+
region: str,
|
|
15
|
+
|
|
16
|
+
puuid: str,
|
|
17
|
+
|
|
18
|
+
start: int = None,
|
|
19
|
+
|
|
20
|
+
endTime: int = None,
|
|
21
|
+
|
|
22
|
+
startTime: int = None,
|
|
23
|
+
|
|
24
|
+
count: int = None,
|
|
25
|
+
|
|
26
|
+
) -> List[str]:
|
|
27
|
+
"""
|
|
28
|
+
Get a list of match ids by PUUID
|
|
29
|
+
"""
|
|
30
|
+
path = "/tft/match/v1/matches/by-puuid/{puuid}/ids"
|
|
31
|
+
# Replace path params
|
|
32
|
+
|
|
33
|
+
path = path.replace("{" + "puuid" + "}", str(puuid))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# Query params
|
|
37
|
+
params = {
|
|
38
|
+
|
|
39
|
+
"start": start,
|
|
40
|
+
|
|
41
|
+
"endTime": endTime,
|
|
42
|
+
|
|
43
|
+
"startTime": startTime,
|
|
44
|
+
|
|
45
|
+
"count": count,
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
# Filter None
|
|
49
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
50
|
+
|
|
51
|
+
response = await self.http.request(
|
|
52
|
+
method="GET",
|
|
53
|
+
url=path,
|
|
54
|
+
region_or_platform=region,
|
|
55
|
+
params=params
|
|
56
|
+
)
|
|
57
|
+
return response.json()
|
|
58
|
+
|
|
59
|
+
async def get_match(
|
|
60
|
+
self,
|
|
61
|
+
region: str,
|
|
62
|
+
|
|
63
|
+
matchId: str,
|
|
64
|
+
|
|
65
|
+
) -> tft-match-v1.MatchDto:
|
|
66
|
+
"""
|
|
67
|
+
Get a match by match id
|
|
68
|
+
"""
|
|
69
|
+
path = "/tft/match/v1/matches/{matchId}"
|
|
70
|
+
# Replace path params
|
|
71
|
+
|
|
72
|
+
path = path.replace("{" + "matchId" + "}", str(matchId))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
# Query params
|
|
76
|
+
params = {
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
# Filter None
|
|
80
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
81
|
+
|
|
82
|
+
response = await self.http.request(
|
|
83
|
+
method="GET",
|
|
84
|
+
url=path,
|
|
85
|
+
region_or_platform=region,
|
|
86
|
+
params=params
|
|
87
|
+
)
|
|
88
|
+
return response.json()
|
|
89
|
+
|
|
@@ -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 Tft-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
|
+
) -> tft-status-v1.PlatformDataDto:
|
|
17
|
+
"""
|
|
18
|
+
Get Teamfight Tactics status for the given platform.
|
|
19
|
+
"""
|
|
20
|
+
path = "/tft/status/v1/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,69 @@
|
|
|
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 Tft-summonerApi:
|
|
8
|
+
def __init__(self, http: HttpClient):
|
|
9
|
+
self.http = http
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
async def get_by_p_u_u_i_d(
|
|
13
|
+
self,
|
|
14
|
+
region: str,
|
|
15
|
+
|
|
16
|
+
encryptedPUUID: str,
|
|
17
|
+
|
|
18
|
+
) -> tft-summoner-v1.SummonerDTO:
|
|
19
|
+
"""
|
|
20
|
+
Get a summoner by PUUID.
|
|
21
|
+
"""
|
|
22
|
+
path = "/tft/summoner/v1/summoners/by-puuid/{encryptedPUUID}"
|
|
23
|
+
# Replace path params
|
|
24
|
+
|
|
25
|
+
path = path.replace("{" + "encryptedPUUID" + "}", str(encryptedPUUID))
|
|
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_by_access_token(
|
|
44
|
+
self,
|
|
45
|
+
region: str,
|
|
46
|
+
|
|
47
|
+
) -> tft-summoner-v1.SummonerDTO:
|
|
48
|
+
"""
|
|
49
|
+
Get a summoner by access token.
|
|
50
|
+
"""
|
|
51
|
+
path = "/tft/summoner/v1/summoners/me"
|
|
52
|
+
# Replace path params
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# Query params
|
|
56
|
+
params = {
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
# Filter None
|
|
60
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
61
|
+
|
|
62
|
+
response = await self.http.request(
|
|
63
|
+
method="GET",
|
|
64
|
+
url=path,
|
|
65
|
+
region_or_platform=region,
|
|
66
|
+
params=params
|
|
67
|
+
)
|
|
68
|
+
return response.json()
|
|
69
|
+
|