Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String args[]){
- ConfigurationBuilder cb = createConfigurationBuilder();
- TwitterFactory tf = new TwitterFactory(cb.build());
- Twitter twitter = tf.getInstance();
- try {
- ResponseList<Status> tweets = twitter.getUserTimeline(getUserId("ahmedmostafan15"));
- for(Status status : tweets){
- System.out.println(status.getUser().getName() + " : " + status.getText()+ " Tweeted AT: " + status.getCreatedAt());
- }
- } catch (TwitterException e) {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement