JTW is Twitter v2 API Client for Java. This library can be complied to Objective-C by J2ObjC. To make pojo object, use jsonschema2pojo.
// OAuth 1.1a
JTWFactory factory = JTWFactory.fromConsumerKeyAndSecret(CONSUMER_KEY, CONSUMER_SECRET);
JTW client = factory.verifyWithAccessToken(ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
// Send Request. (/2/users/:id)
Response<Root<User>> response = client.show(UsersLookupIdRequest.builder("11348282").build());
// Show Response.
System.out.println(response.getValue().getData().getName()); // NASA
- User Lookup
- Follows
- Tweet Lookup
- Like
- Retweet
- Search
- Timelines
- Tweet Count
- Filtered Stream
- Sampled Stream
- Hide Replies
- Direct Message
MIT
Twitter: @uakihir0