Skip to content

Latest commit

 

History

History
74 lines (63 loc) · 5.56 KB

README.md

File metadata and controls

74 lines (63 loc) · 5.56 KB

JTW

JTW is Twitter v2 API Client for Java. This library can be complied to Objective-C by J2ObjC. To make pojo object, use jsonschema2pojo.

HowToUse

// 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

Status

License

MIT

Author

Twitter: @uakihir0