Skip to content

Twitter Authorization

jasonbaldridge edited this page Feb 13, 2013 · 1 revision

An alternative to using the authorization passed in via properties in the tshrdlu script is to add them using an SBT local file. To do this, create ~/.sbt/local.sbt and add the following to it:

initialize ~= { _ =>
  System.setProperty("twitter4j.oauth.consumerKey", "...")
  System.setProperty("twitter4j.oauth.consumerSecret", "...")
  System.setProperty("twitter4j.oauth.accessToken", "...")
  System.setProperty("twitter4j.oauth.accessTokenSecret", "...")
}

Thanks to Tass for finding this alternative!

Clone this wiki locally