How to get user profile image using Twython?
I see show_user()
method, but instantiating Twython with api key and secret + oauth token and secret, and calling this method returns 404:
TwythonError: Twitter API returned a 404 (Not Found), Sorry, that page does not exist
.
Calling same method from Twython instantiated w.o api/oauth keys returns 400: TwythonAuthError: Twitter API returned a 400 (Bad Request), Bad Authentication data
.
I also tried to GET
user info from https://api.twitter.com/1.1/users/show.json?screen_name=USERSCREENNAME
, and got 400 as well.
I would appreciate a working example of authenticated request to twitter api 1.1 . Can't find it on twitter api reference.