← All projects

twittered

by @redouane59

257

Twitter API client for Java developers

About this project

This project is a JAVA library which allows you to consume the Twitter API. Configuration In your pom.xml, add the following dependency and replace VERSION with the version you wish: If you are using Gradle Kotlin DSL, make sure you have MavenCentral among the available repositories: Then add the following line to your dependencies block: To be able to see library logs, also add sl4j references : In order to use your own developer credentials, you have several options : Using a json file File example : With program argument Pass through java argument your file path like -Dtwitter.credentials.file.path=/your/path/to/json . Then instantiate the client like or Using deserialization in your code With hard-coded values NB : Your twitter credentials can be found in your twitter app page in the Key and tokens page. Available methods See : ITwitterClientV2.java ITwitterClientV1.java Tweet.java User.java Code samples See : ITwitterClientV2Test.java ITwitterClientV2AuthenticatedTest.java ITwitterClientV1Test.java Basic examples Init TwitterClient Get Tweet object from tweet id and display some information Get User object from username and display some information Contribution

From the project README on GitHub

Stars
257
Forks
66
License
Apache-2.0
Last push
31 Jul 2024

Add this badge to your README

Show that your project is listed on Made in Algeria.

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/twittered.svg)](https://www.madeinalgeria.dev/projects/twittered)

Related projects