Skip to content

Commit 3f8ecfe

Browse files
fa0311claude
andcommitted
docs: link twitter_api_safe_relay and the sibling projects
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 17e9518 commit 3f8ecfe

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ Learn more about the automatically generated Python package here.
3131

3232
[README-generated.md](README-generated.md)
3333

34+
## Related projects
35+
36+
- [twitter-openapi](https://github.com/fa0311/twitter-openapi) the OpenAPI specification both packages are generated from
37+
- [twitter_api_safe_relay](https://github.com/fa0311/twitter_api_safe_relay) an HTTP relay that runs requests through a logged-in browser; point the client's host at it
38+
- [twitter-openapi-typescript](https://github.com/fa0311/twitter-openapi-typescript) the same client for TypeScript
39+
3440
## License
3541

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

‎twitter_openapi_python/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ client.additional_api_headers = {
8383

8484
### Endpoint
8585

86-
The generated client accepts any host that keeps X's path shape (`/graphql/{queryId}/{operationName}`, `/1.1/...`, `/2/...` under `https://x.com/i/api`). Build the `ApiClient` yourself and hand it to `get_twitter_openapi_python_client`; the login helpers are not involved, so cookies and headers are then up to you (or to whatever answers at that host).
86+
The generated client accepts any host that keeps X's path shape (`/graphql/{queryId}/{operationName}`, `/1.1/...`, `/2/...` under `https://x.com/i/api`). Build the `ApiClient` yourself and hand it to `get_twitter_openapi_python_client`; the login helpers are not involved, so cookies and headers are then up to you (or to whatever answers at that host). For example, [twitter_api_safe_relay](https://github.com/fa0311/twitter_api_safe_relay) answers at `http://localhost:3000/i/api` with a logged-in browser session.
8787

8888
```python
8989
import twitter_openapi_python_generated as twitter

0 commit comments

Comments
 (0)