[Python-modules-commits] [python-social-auth] 42/89: Move querystring to parameters

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:15:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.15
in repository python-social-auth.

commit b8ee7d613bab8826751db0175f3351e861d2064c
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Sat Mar 26 03:39:46 2016 -0300

    Move querystring to parameters
---
 social/backends/twitter.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/social/backends/twitter.py b/social/backends/twitter.py
index b07257b..7ccb7d2 100644
--- a/social/backends/twitter.py
+++ b/social/backends/twitter.py
@@ -35,6 +35,7 @@ class TwitterOAuth(BaseOAuth1):
     def user_data(self, access_token, *args, **kwargs):
         """Return user data provided"""
         return self.get_json(
-            'https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true',
+            'https://api.twitter.com/1.1/account/verify_credentials.json',
+            params={'include_email': 'true'},
             auth=self.oauth_auth(access_token)
         )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list