You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In twitter-openapi-typescript, two additional requests are made:
Fetching default argument values:
The library retrieves default argument values from an external JSON file to address limited support for default arguments in the OpenAPI specification and openapi-generator.
You can find this JSON file here: placeholder.json.
Since an insertion of malicious code in this file could cause issues, we use a fixed commit hash to mitigate that risk.
Fetching the latest User-Agent:
The library also retrieves an updated User-Agent header from this file: header.json.
This ensures compliance with Twitter’s requirements, as using an outdated User-Agent could result in account suspension.
Unlike the placeholder file, this file does not use a fixed commit hash because it must stay up-to-date.
Updates are managed by me and a GitHub Action, ensuring the latest User-Agent is used while minimizing risks from malicious code.
If these additional requests are an issue, I recommend initializing the library with TwitterOpenApiClient instead of TwitterOpenApi: TwitterOpenApiClient.
We also welcome pull requests if you'd like to contribute improvements!
Are you intercept my requests?
The text was updated successfully, but these errors were encountered: