x-api
Installation
SKILL.md
X/Twitter API Skill
Read paths stay here. X Articles writes go through shitrat x. Tweets still use OAuth 1.0a until that lands on the same CLI.
Authentication
Recommended for read-only access: app bearer token
There is no stored x_bot_bearer_token secret right now. Derive the app bearer token from the X app consumer key + secret, then use that bearer token for read-only endpoints like tweet lookup.
python3 <<'PY'
import base64, json, subprocess
from urllib import request, parse