Skip to content

Instantly share code, notes, and snippets.

@mironal
Created June 14, 2012 02:47
Show Gist options
  • Save mironal/2927767 to your computer and use it in GitHub Desktop.
Save mironal/2927767 to your computer and use it in GitHub Desktop.
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