Skip to content

Commit 007b610

Browse files
committed
fix(WonderBotList): update functions to require token
1 parent a4967bd commit 007b610

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dbots/service.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,9 @@ def get_bot(self, bot_id: str) -> HTTPResponse:
14391439
"""
14401440
return self._request(
14411441
method='GET',
1442-
path=f'/bots/{bot_id}'
1442+
path=f'/bots/{bot_id}',
1443+
headers={'Authorization': self.token},
1444+
requires_token=True
14431445
)
14441446

14451447
def get_user(self, user_id: str) -> HTTPResponse:
@@ -1453,7 +1455,9 @@ def get_user(self, user_id: str) -> HTTPResponse:
14531455
"""
14541456
return self._request(
14551457
method='GET',
1456-
path=f'/user/{user_id}'
1458+
path=f'/user/{user_id}',
1459+
headers={'Authorization': self.token},
1460+
requires_token=True
14571461
)
14581462

14591463

0 commit comments

Comments
 (0)