Twitter4S is a Scala wrapper for the Twitter API.
Twitter4S is an unofficial Scala library for the TwitterAPI.
With Twitter4S, you can easily integrate your Scala project with the Twitter Service.
100% Pure Scala - works on any Scala Platform version 2.12 or later.
This library is always published in this repository.
val twitter:Twitter = TwitterFactory.getInstance
twitter.initialize("consumer key", "consumer secret key",
"access token", "access token secret")
twitter.updateStatus("Hello,World!!") //return TweetStatus
twitter.getHomeTimeLine //return home timeline data as Seq[UserTimeLine]
twitter.getFollowersList // return followers list as Seq[UserArray]
twitter.getFriendsList // return friends list as Seq[UserArray]
twitter.getUserTimeLine("screen_name")
twitter.searchTweet("key_words")
twitter.searchUser("key_words")
twitter.getFavoriteList("screen_name") // return user favorite list as Seq
twitter.createFavorite("tweet_ids or screen_name")
twitter.destroyFavorite("tweet_ids or screen_name")
twitter.createFriendshipsByName("screen_name")
or
twitter.createFriendshipsByIds("user_id")
twitter.destroyFriendshipsByName("screen_name")
or
twitter.destroyFriendshipsByIds("user_id")
twitter.createRetweet("tweet_ids")
twitter.destroyRetweet("tweet_ids")
You can integrate the latest Twitter4S build easily by using sbt.
Add this code on your build.sbt or Build.scala.
resolvers += "Maven Repo on github" at "https://lrf141.github.io/Twitter4S/"
libraryDependencies ++= Seq(
"Twitter4S" % "twitter4s_2.12" % "1.0.0"
)
Twitter4S is released under MIT License.
MIT License
Copyright (c) 2017 K.Takeuchi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.