Twitter API 1.1 Custom Image and Name

Twitter has provided excellent API 1.0. I could get a user image like this:

http://api.twitter.com/1/users/profile_image/twitter 

Does update 1.1 update all this for free? Or does update 1.1 require authentication for the user image and username? I noticed that there is no equivalent call in docs .

and this does not work:

  http://api.twitter.com/1.1/users/profile_image/twitter 
+4
source share
2 answers

You can only get the user image and username using authentication. If you are trying to get a user profile picture using Abraham twitteroauth, then I think this one will help you. You can also get the username by calling the name object and displaying it.

0
source

You should find your answers in the Twitter API docs:

https://dev.twitter.com/docs/user-profile-images-and-banners

for example: https://api.twitter.com/1.1/users/show.json?screen_name=twitterapi

and this requires authentication:

-1
source

All Articles