Posting to X with Motoko bindings for the X API v2, generated from X's OpenAPI spec. The write path is ( ); the request model is . Backend A minimal canister that posts a tweet on behalf of a user holding an OAuth 2.0 bearer token (token acquisition/refresh is canister-side — see below). Non- replicated is the default, so you just supply the token; every optional field must be present, and means "not supplied": The text field is (the trailing underscore avoids the Motoko keyword collision; it serialises to the JSON key ). OAuth 2.0 setup — PKCE, no client secret Every write endpoint ( most pr…