Skip to content

Instantly share code, notes, and snippets.

@kkismd
Last active May 18, 2017 07:30
Show Gist options
  • Save kkismd/64a15e7f01665c76a9b81e058c15b757 to your computer and use it in GitHub Desktop.
Save kkismd/64a15e7f01665c76a9b81e058c15b757 to your computer and use it in GitHub Desktop.
コンソールでつぶやくコマンド
import twitter4j._
object Main {
def main(args: Array[String]): Unit = {
val tweet = args.mkString(" ")
val status = TwitterFactory.getSingleton().updateStatus(tweet)
println("status id = " + status.getId.toString())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment