From 02d8e1195805c48923325de24b7551d39fa71f1e Mon Sep 17 00:00:00 2001 From: Charlie Wolf Date: Mon, 9 Jan 2017 08:52:38 -0600 Subject: [PATCH] remove unneccessary json serialization --- pynder/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pynder/api.py b/pynder/api.py index a3b0c19..df24ec0 100644 --- a/pynder/api.py +++ b/pynder/api.py @@ -18,8 +18,7 @@ def _url(self, path): return constants.API_BASE + path def auth(self, facebook_id, facebook_token): - data = json.dumps({"facebook_id": str(facebook_id), - "facebook_token": facebook_token}) + data = {"facebook_id": str(facebook_id), "facebook_token": facebook_token} result = self._session.post( self._url('/auth'), json=data, proxies=self._proxies).json() if 'token' not in result: