Retrieve the user profile image from twitter

前端 未结 2 701
天涯浪人
天涯浪人 2020-12-09 06:27

I am using the Twitter4J API in Java to retrieve the profile image for a Twitter user whose logged in. The command is something like :

twitter.getProfileImag         


        
2条回答
  •  情话喂你
    2020-12-09 06:53

    Take a look at the example code. https://github.com/yusuke/twitter4j/blob/master/twitter4j-examples/src/main/java/twitter4j/examples/user/GetProfileImage.java

    You can pass either ProfileImage.MINI, ProfileImage.NORMAL or ProfileImage.BIGGER

提交回复
热议问题