Skip to main content
Use the Kotlin SDK when you want idiomatic Kotlin builders, nullable types, and coroutine await() over the generated Java client for TwexAPI REST workflows.
Use this client for Kotlin coroutines and typed builders. Use the Java SDK for Java-first codebases.

Install

Gradle:
Maven:
Maven Central may still be catching up. Install from source:
Source: twexapi-dev/x-api-scraper-kotlin

Authenticate

Use coroutines

async() returns the Java CompletableFuture client. Call await() from a coroutine:

Workflow: post a tweet

Write actions need a Twitter cookie or auth_token on the request:

References