Awesome
SpringBoot Starter for Twitter4J
How to use?
-
Install the
twitter4j-spring-boot-starter
locallygit clone https://github.com/sivaprasadreddy/twitter4j-spring-boot-starter.git cd twitter4j-spring-boot-starter ./mvnw clean install
-
Add twitter4j-spring-boot-starter by adding the following dependency.
<dependency> <groupId>com.sivalabs</groupId> <artifactId>twitter4j-spring-boot-starter</artifactId> <version>1.0-SNAPSHOT</version> </dependency>
-
Go to https://developer.twitter.com/, create an application and generate Keys and tokens
-
Configure your Twitter OAuth properties in example/src/main/resources/application.properties
Now you can run the application or tests as follows:
cd example
./mvnw test
./mvnw spring-boot:run