Fix endpoint parameters for Client.get_user and Client.get_users
authorHarmon <Harmon758@gmail.com>
Wed, 24 Feb 2021 03:54:25 +0000 (21:54 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 24 Feb 2021 03:54:25 +0000 (21:54 -0600)
tweepy/client.py

index 064799665edee64537cc87f21b42ea6d18e13bd5..31ac466ddb5f1cd94ba7c6539dba8b68838321f2 100644 (file)
@@ -185,7 +185,7 @@ class Client:
 
         return self._make_request(
             "GET", route, params=params,
-            endpoint_parameters=("expansions", "tweet_fields", "user_fields"),
+            endpoint_parameters=("expansions", "tweet.fields", "user.fields"),
             data_type=User
         )
 
@@ -211,7 +211,7 @@ class Client:
         return self._make_request(
             "GET", route, params=params,
             endpoint_parameters=(
-                "ids", "usernames", "expansions", "tweet_fields", "user_fields"
+                "ids", "usernames", "expansions", "tweet.fields", "user.fields"
             ), data_type=User
         )