@@ -106,7 +106,7 @@ class Blist(Service):
106
106
- `Blist API Documentation <https://blist.xyz/docs/>`_
107
107
"""
108
108
109
- BASE_URL = 'https://blist.xyz/api'
109
+ BASE_URL = 'https://blist.xyz/api/v2 '
110
110
111
111
@staticmethod
112
112
def aliases () -> list :
@@ -143,6 +143,48 @@ def get_user(self, user_id: str) -> HTTPResponse:
143
143
path = f'/user/{ user_id } '
144
144
)
145
145
146
+ def get_user_bots (self , user_id : str ) -> HTTPResponse :
147
+ """|httpres|\n
148
+ Gets the user's bots listed on this service.
149
+
150
+ Parameters
151
+ -----------
152
+ user_id: :class:`str`
153
+ The user's ID.
154
+ """
155
+ return self ._request (
156
+ method = 'GET' ,
157
+ path = f'/user/{ user_id } /bots'
158
+ )
159
+
160
+ def get_user_servers (self , user_id : str ) -> HTTPResponse :
161
+ """|httpres|\n
162
+ Gets the user's servers listed on this service.
163
+
164
+ Parameters
165
+ -----------
166
+ user_id: :class:`str`
167
+ The user's ID.
168
+ """
169
+ return self ._request (
170
+ method = 'GET' ,
171
+ path = f'/user/{ user_id } /servers'
172
+ )
173
+
174
+ def get_server (self , server_id : str ) -> HTTPResponse :
175
+ """|httpres|\n
176
+ Gets the server listed on this service.
177
+
178
+ Parameters
179
+ -----------
180
+ server_id: :class:`str`
181
+ The server's ID.
182
+ """
183
+ return self ._request (
184
+ method = 'GET' ,
185
+ path = f'/server/{ server_id } '
186
+ )
187
+
146
188
def get_bot (self , bot_id : str ) -> HTTPResponse :
147
189
"""|httpres|\n
148
190
Gets the bot listed on this service.
@@ -173,6 +215,22 @@ def get_bot_votes(self, bot_id: str) -> HTTPResponse:
173
215
requires_token = True
174
216
)
175
217
218
+ def get_bot_reviews (self , bot_id : str ) -> HTTPResponse :
219
+ """|httpres|\n
220
+ Gets the bot's reviews on this service.
221
+
222
+ Parameters
223
+ -----------
224
+ bot_id: :class:`str`
225
+ The bot's ID.
226
+ """
227
+ return self ._request (
228
+ method = 'GET' ,
229
+ path = f'/bot/{ bot_id } /reviews' ,
230
+ headers = {'Authorization' : self .token },
231
+ requires_token = True
232
+ )
233
+
176
234
def get_widget_url (self , bot_id : str , widget_type : str = 'normal' , ** query ) -> str :
177
235
"""
178
236
Gets the widget URL for this bot.
0 commit comments