Created
June 14, 2012 02:47
-
-
Save mironal/2927767 to your computer and use it in GitHub Desktop.
This file contains 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
package hoge.twittext; | |
import twitter4j.Twitter; | |
import twitter4j.TwitterException; | |
import twitter4j.TwitterFactory; | |
public class TwitText { | |
public static void main(String[] args) throws TwitterException { | |
if (args.length < 1) { | |
System.out.println("Usage: tweet"); | |
System.exit(-1); | |
} | |
Twitter twitter = new TwitterFactory().getInstance(); | |
twitter.updateStatus(args[0]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment