Skip to content

Commit

Permalink
Readme and config
Browse files Browse the repository at this point in the history
  • Loading branch information
janm399 committed Dec 8, 2013
1 parent 97651d4 commit 82cb412
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
@@ -1,9 +1,9 @@
#Scala Exchange 2013
#Spray client, Akka and streaming tweets

Twitter streaming & simple sentiment analysis application. To build & run the plain-vanilla version of the application, run ``sbt run``. Then you can type in the ``track`` command, which expects the Twitter search term to track. See https://dev.twitter.com/docs/api/1.1/post/statuses/filter for ``track`` filter.

##Twitter application
Before you run the application, create the ``~/.twitter/scalaexchange2013`` file, containing four lines; these lines represent your twitter consumer key and secret, followed by token value and token secret. To generate these values, head over to https://dev.twitter.com/apps/, create an application and add the appropriate lines to this file. An example ``~/.twitter/scalaexchange2013`` is
Before you run the application, create the ``~/.twitter/activator`` file, containing four lines; these lines represent your twitter consumer key and secret, followed by token value and token secret. To generate these values, head over to https://dev.twitter.com/apps/, create an application and add the appropriate lines to this file. An example ``~/.twitter/activator`` is

```
*************TqOdlxA
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/core/tweetstream.scala
Expand Up @@ -20,7 +20,7 @@ trait TwitterAuthorization {
trait OAuthTwitterAuthorization extends TwitterAuthorization {
import OAuth._
val home = System.getProperty("user.home")
val lines = Source.fromFile(s"$home/.twitter/scalaexchange2013").getLines().toList
val lines = Source.fromFile(s"$home/.twitter/activator").getLines().toList

val consumer = Consumer(lines(0), lines(1))
val token = Token(lines(2), lines(3))
Expand Down

0 comments on commit 82cb412

Please sign in to comment.