Skip to main content
XClient supports Bearer Token (app-only), OAuth 2.0 with PKCE (user context), and OAuth 1.0a (user context). Get your credentials from the X Developer Console.

Bearer Token

OAuth 2.0 with PKCE

If you already have a user access token:
To run the PKCE authorization flow and refresh tokens with OAuth2Pkce:

OAuth 1.0a

See the Java samples repo for more examples.