Skip to content

A Scala sample showing server-server integration between Nest and Twitter

License

Notifications You must be signed in to change notification settings

tellison/nest-twitter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter/Nest

Sample server-to-server integration between Nest and Twitter.

Allows you to pair up a Twitter account representing a structure with the user's Nest account. Uses a top level actor (TopActor) to coordinate updates between a Twitter REST Actor (used for posting updates and DMs), a Twitter Streaming Actor (for subscribing to DMs) and a Nest actor (NestActor) for listening to Firebase updates.

Install

To get started you'll need a Twitter API key / access token, and a Nest access token.

Copy src/main/resources/credentials-sample.txt to src/main/resources/credentials.txt, fill in the placeholder values.

Building

Builds are done with Maven which is available on most platforms. You can compile the code by running:

mvn compile

The pom.xml file in the root is a Maven project definition and can be opened directly as a project by most Java IDEs.

Running

After you've compiled you can run the application by running the following:

mvn exec:java -Dexec.mainClass=com.nestlabs.twest.Main

Assuming your config is set up (as described earlier) you should see messages logged to standard output.

Contributing

Contributions are always welcome and highly encouraged.

See CONTRIBUTING for more information on how to get started.

License

Apache 2.0 - See LICENSE for more information.

About

A Scala sample showing server-server integration between Nest and Twitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 100.0%