Handle boolean value for API.verify_credentials include_email parameter
authorHarmon <Harmon758@gmail.com>
Wed, 28 Aug 2019 19:40:08 +0000 (14:40 -0500)
committerHarmon <Harmon758@gmail.com>
Wed, 28 Aug 2019 19:40:54 +0000 (14:40 -0500)
Resolves #890

tweepy/api.py

index 3e6897ba16fd805be05c5a907ba6ce077e47c489..56d66cf3b7e343d593e42f67baa623b24165bb52 100644 (file)
@@ -648,6 +648,8 @@ class API(object):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials
             :allowed_param: 'include_entities', 'skip_status', 'include_email'
         """
+        if "include_email" in kwargs:
+            kwargs["include_email"] = str(kwargs["include_email"]).lower()
         try:
             return bind_api(
                 api=self,