Skip to content

About

OpenAPI(Swagger) specification of Twitter Internal API (Twitter graphql API)

Topics

Resources

Contributing

Stars

195 stars

Watchers

5 watching

Forks

Repository files navigation

Twitter OpenAPI

Twitter OpenAPI(Swagger) specification

issues / discussions

Usage

openapi-generator-cli generate -g <language> -i https://raw.githubusercontent.com/fa0311/twitter-openapi/main/dist/docs/openapi-3.0.yaml -o ./generated

There are several outputs, but the one that most closely follows the OpenAPI specification is dist/docs. However, a lot of syntax that is not supported by some generators is used.

You can also modify the hook to make the generated results more user-friendly. build_config.py

Note that the license also inherits to the output.

Contribute

CONTRIBUTING.md

build

uv run python tools/build.py

update placeholder.json

uv run tools/update_placeholder.py https://raw.githubusercontent.com/fa0311/twitter_api_safe_relay/main/packages/server/requests.ndjson

test

java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python
uv pip install ./python_generated
STRICT_MODE=True uv run python test/python/test_serialize.py  # needs cookie.json

License

This project is dual licensed. You can choose one of the following licenses:

About

OpenAPI(Swagger) specification of Twitter Internal API (Twitter graphql API)

Topics

Resources

Contributing

Stars

195 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages