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
x-rate-limit-limit: the rate limit ceiling for that given endpoint
x-rate-limit-remaining: the number of requests left for the 15-minute window
x-rate-limit-reset: the remaining window before the rate limit resets, in UTC [epoch seconds](http://en.wikipedia.org/wiki/Unix_time)
which are valuable to clients who want to ensure they are not going over the limits. Currently, there is no way of accessing this data from any of the public methods.
Expected behavior
Expose the headers properties on method return types from the various namespaces.
Actual behavior
No HTTP response headers available. I think these need to be added to the OpenAPI schema that in turn powers twitter-api-sdk/dist/gen/openapi-types.d.ts
Steps to reproduce the behavior
N/A
The text was updated successfully, but these errors were encountered:
jacobdr
changed the title
Expose HTTP headers from upstream Twitter API calls
Expose HTTP rate-limit headers from upstream Twitter API calls
Mar 10, 2023
The Twitter v2 API exposes the headers
which are valuable to clients who want to ensure they are not going over the limits. Currently, there is no way of accessing this data from any of the public methods.
Expected behavior
Expose the headers properties on method return types from the various namespaces.
Actual behavior
No HTTP response headers available. I think these need to be added to the OpenAPI schema that in turn powers
twitter-api-sdk/dist/gen/openapi-types.d.ts
Steps to reproduce the behavior
N/A
The text was updated successfully, but these errors were encountered: