allow include_email param
authorJacob Ferrero <jacobaferrero@gmail.com>
Thu, 18 Jun 2015 21:30:28 +0000 (14:30 -0700)
committerJacob Ferrero <jacobaferrero@gmail.com>
Thu, 18 Jun 2015 21:30:28 +0000 (14:30 -0700)
See https://dev.twitter.com/rest/reference/get/account/verify_credentials

tweepy/api.py

index 783eb231730a19ceb4713bdeafea75ee6fe6a652..3f698f1225a6079400dc23a9ee8f130d2b780d66 100644 (file)
@@ -618,7 +618,7 @@ class API(object):
 
     def verify_credentials(self, **kargs):
         """ :reference: https://dev.twitter.com/rest/reference/get/account/verify_credentials
-            :allowed_param:'include_entities', 'skip_status'
+            :allowed_param:'include_entities', 'skip_status', 'include_email'
         """
         try:
             return bind_api(
@@ -626,7 +626,7 @@ class API(object):
                 path='/account/verify_credentials.json',
                 payload_type='user',
                 require_auth=True,
-                allowed_param=['include_entities', 'skip_status'],
+                allowed_param=['include_entities', 'skip_status', 'include_email'],
             )(**kargs)
         except TweepError as e:
             if e.response and e.response.status == 401: