From 124e705ce2c5e60d7ecdfbf9761a3f7826024acf Mon Sep 17 00:00:00 2001 From: Gilead Baggio Date: Sun, 3 Oct 2021 15:16:58 +0530 Subject: [PATCH] Documentation: Added screen_name parameter to get_user method In Getting started section of the documentation, under Models sub-heading, its mentioned as: user = api.get_user('twitter') but it returns the error found below: TypeError: get_user() takes 1 positional argument but 2 were given. So it would be easier for dummies like me, if its mentioned as user = api.get_user(screen_name='twitter') instead. --- docs/getting_started.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting_started.rst b/docs/getting_started.rst index 90214ce..229f8a4 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -50,7 +50,7 @@ from Twitter which we can then use inside our application. For example the following code returns to us a User model:: # Get the User object for twitter... - user = api.get_user('twitter') + user = api.get_user(screen_name='twitter') Models contain the data and some helper methods which we can then use:: -- 2.25.1