Install
Gradle:Authenticate
Basic example
Look up a profile and list followers:Workflow: search tweets
Workflow: post a tweet
Write actions need a Twitter cookie orauth_token on the request:
Error handling
The SDK throws typed exceptions for HTTP failures. Use try/catch around.call() and inspect status codes before retrying 4xx responses.
Add an SLF4j implementation such as Logback for debug logging during local development.
References
- SDKs overview
- Kotlin SDK (coroutine wrapper over this client)
- Authentication
- Advanced Twitter Search
- Source Repository