Created
July 2, 2014 12:02
-
-
Save contee213/ba6f34c7a38e4f33662a to your computer and use it in GitHub Desktop.
twitter basics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import twitter4j.*; | |
/** | |
* Created by contee on 2014/07/02. | |
*/ | |
public class HelloTwitter { | |
public static void main(String[] args) throws TwitterException { | |
Twitter twitter = TwitterFactory.getSingleton(); | |
ResponseList<Status> homeTimeLine = twitter.getHomeTimeline(); | |
for (Status status : homeTimeLine) { | |
System.out.printf(status.getText()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment