A Restful API that retrieves specific topic related Tweets every 15 minutes from the Twitter API.
Tweets retrieved are parsed, stored in Tweet objects and persisted to a Postgres Database.
Tweets are then exposed via a GET endpoint - http://localhost:8080/api/v1/tweets
You will have to have a Twitter Developer account and Twitter API Keys
Set the hardcoded variables to the keys retrieved in TweetController.java
CONSUMER_KEY = [YOUR_CONSUMER_KEY]
CONSUMER_SECRET = [YOUR_CONSUMER_SECRET]
ACCESS_TOKEN = [YOUR_ACCESS_TOKEN]
ACCESS_TOKEN_SECRET = [YOUR_ACCESS_TOKEN_SECRET]
You need to have the following installed:
- mvn clean install
- Start the Spring Application