Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.5 KB

README.md

File metadata and controls

46 lines (27 loc) · 1.5 KB

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.