Demostrating twitter api usage with Spring Social
clone this repo
Get yourself a twitter appi key and secret. Follow this guide to do so here
Add environment variables twitterKey = {your key} and twitterSecret = {your secret}
mvn clean install
mvn spring-boot:run
For twitter profile data
curl http://localhost:8080/users/{username}
For twitter profile tweets (last 20)
curl http://localhost:8080/users/{username}/tweets
NOTE: When accessing http://localhost:8080 via browser the default twitter username "emmanueljreyme" me of course. Feel free to change it ^_^