Twitter Web Client is client library to call twitter web api to written in java. This will be able to compile with google/j2objc to Objective-C library. (iOS, Mac OS) This library created with the help of Nitter. Thanks.
- No Consumer Key/Secret required.
- Access to a variety of data.
- Various APIs available.
- Easy to use.
- /1.1/guest/activate.json
- /1.1/onboarding/task.json
- /1.1/friendships/create.json
- /1.1/friendships/destroy.json
- /2/timeline/liked_by.json
- /2/timeline/retweeted_by.json
- /2/notifications/mentions.json
- /graphql/{queryId}/UserByScreenName
- /graphql/{queryId}/Following
- /graphql/{queryId}/Followers
- /graphql/{queryId}/CreateTweet
- /graphql/{queryId}/FavoriteTweet
- /graphql/{queryId}/UnfavoriteTweet
- /graphql/{queryId}/CreateRetweet
- /graphql/{queryId}/DeleteRetweet
- /graphql/{queryId}/HomeTimeline
- /graphql/{queryId}/HomeLatestTimeline
- /graphql/{queryId}/Bookmarks
- /graphql/{queryId}/UserTweets
- /graphql/{queryId}/UserMedia
- /graphql/{queryId}/TweetDetail
- /graphql/{queryId}/SearchTimeline
You can install via JitPack with gradle. Add the JitPack repository to your build file.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
And add the dependency as bellow.
dependencies {
implementation 'com.github.uakihir0:twitter-web-client:{{version}}'
}
Twitter Web Client needs NO Twitter Consumer Key and Secret. You can access Twitter resources just only use this client library, as bellow.
// Get tweets from specified user.
TwitterWebClient client = new TwitterWebClient.Builder().build();
UserTimelineRequest request = UserTimelineRequest
.builder()
.userId("USER_ID")
.build();
client.timeline().getUserTimeline(request);
// Get users who liked or retweeted specified tweet.
TwitterWebClient client = new TwitterWebClient.Builder().build();
SpecifiedTweetRequest request = SpecifiedTweetRequest
.builder()
.tweetId("TWEET_ID")
.build();
client.timeline().getUsersLikedBy(request);
client.timeline().getUsersRetweetedBy(request);
This software is released under the MIT License, see LICENSE.txt.