Last active
May 18, 2017 07:30
-
-
Save kkismd/64a15e7f01665c76a9b81e058c15b757 to your computer and use it in GitHub Desktop.
コンソールでつぶやくコマンド
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._ | |
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