twitter4s.g8

October 28, 2017 ยท View on GitHub

Build Status License Chat

Giter8 template for a sample application using twitter4s.

Usage

Get the template for the sample application:

sbt new DanielaSfregola/twitter4s.g8

This template will prompt for the name of the project. Press Enter if the default values suit you.

Add your consumer and access token as environment variables:

export TWITTER_CONSUMER_TOKEN_KEY='my-consumer-key'
export TWITTER_CONSUMER_TOKEN_SECRET='my-consumer-secret'
export TWITTER_ACCESS_TOKEN_KEY='my-access-key'
export TWITTER_ACCESS_TOKEN_SECRET='my-access-secret'

The sample project contains examples for both REST and streaming client.

Run the examples with sbt run and choose the main to run.

Run template tests with sbt test