Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

ScalaIO/tweet-speakers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Repository Archived ⚠️


Attention Contributors and Users

This repository is now archived and no longer actively maintained

scalaio-speakers

Script to publish to twitter speaker annoucements for ScalaIO

Dependencies

Prerequisites

  • JDK 8
  • Scala 2.11+

Twitter

  • Go to http://apps.twitter.com/, login with your twitter account and register your application to get a consumer key and a consumer secret.
  • Once the app has been created, generate a access key and access secret with the desired permission level.

Papercall.io

Usage

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'
export PAPERCALL_TOKEN='my-papercall-token'
export OUTPUT_DIR='/output/dir/for/images'
export OUTPUT_PHOTOS_DIR='/output/dir/for/photos'
export PHOTOS_DIR='/input/dir/for/speaker/photos'
export SUBMISSIONS_FILE='/output/file/for/submissions.json'

You can also add them to your configuration file, usually called application.conf:

twitter {
  consumer {
    key = "my-consumer-key"
    secret = "my-consumer-secret"
  }
  access {
    key = "my-access-key"
    secret = "my-access-secret"
  }
}
papercall {
  token = "my-personal-token"
}
files {
  outputImagesDir = "/output/dir/for/images"
  outputPhotosDir = "/output/dir/for/photos"
  speakerPhotosDir = "/input/dir/for/speaker/photos"
  outputSubmissions = "/output/file/for/submissions.json"
}

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

About

Tweet content and image generator for announcing speakers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages