Skip to content

Commit e095412

Browse files
committed
fixed async/logout | added _get_user_state
1 parent cdde4b9 commit e095412

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

twikit/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
A Python library for interacting with the Twitter API.
88
"""
99

10-
__version__ = '1.7.2'
10+
__version__ = '1.7.3'
1111

1212
from ._captcha import Capsolver
1313
from .bookmark import BookmarkFolder

twikit/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def logout(self) -> Response:
424424
"""
425425
Logs out of the currently logged-in account.
426426
"""
427-
_, response = self.http.post(
427+
_, response = self.post(
428428
Endpoint.LOGOUT,
429429
headers=self._base_headers
430430
)

twikit/twikit_async/client.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -5240,7 +5240,9 @@ async def _update_subscriptions(
52405240

52415241
return _payload_from_data(response)
52425242

5243-
async def _get_user_state(self) -> Literal['normal', 'bounced', 'suspended']:
5243+
async def _get_user_state(
5244+
self
5245+
) -> Literal['normal', 'bounced', 'suspended']:
52445246
response, _ = await self.get(
52455247
Endpoint.USER_STATE,
52465248
headers=self._base_headers

0 commit comments

Comments
 (0)