ejreyme / twitter-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

twitter-api with Spring Social

Demostrating twitter api usage with Spring Social

Getting Started

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

Usage

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 ^_^

About


Languages

Language:Shell 42.7%Language:Batchfile 30.3%Language:Java 15.2%Language:HTML 7.5%Language:JavaScript 4.3%