From 45cdb5b9a3569c2d879536aa7f6484628be43ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20Berki=20YAZICIO=C4=9ELU?= <32420086+YusufBerki@users.noreply.github.com> Date: Sat, 5 Mar 2022 15:16:20 +0300 Subject: [PATCH] Fix current_user 405 error (#312) --- instagram_private_api/endpoints/accounts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/instagram_private_api/endpoints/accounts.py b/instagram_private_api/endpoints/accounts.py index 65f3ee7d..25441121 100644 --- a/instagram_private_api/endpoints/accounts.py +++ b/instagram_private_api/endpoints/accounts.py @@ -75,8 +75,7 @@ def login(self): def current_user(self): """Get current user info""" - params = self.authenticated_params - res = self._call_api('accounts/current_user/', params=params, query={'edit': 'true'}) + res = self._call_api('accounts/current_user/', query={'edit': 'true'}) if self.auto_patch: ClientCompatPatch.user(res['user'], drop_incompat_keys=self.drop_incompat_keys) return res