Is your feature request related to a problem? Please describe.
With the impending rate limit changes, there will be no way to fetch data from the new informational headers.
HTTP_X_RATELIMIT_LIMIT: Indicates the maximum number of allowed requests within the defined time window.
HTTP_X_RATELIMIT_REMAINING: Shows the number of remaining requests you can make in the current time window.
HTTP_X_RATELIMIT_RESET: Provides the time remaining in the current window.
HTTP_X_RATELIMIT_ACCOUNT_SUCCESS_LIMIT: Indicates the maximum number of allowed requests within the defined time window.
HTTP_X_RATELIMIT_ACCOUNT_SUCCESS_REMAINING: Shows the number of remaining requests you can make in the current time window.
HTTP_X_RATELIMIT_ACCOUNT_SUCCESS_RESET: Provides the time remaining in the current window.
Describe the solution you'd like
A way to retrieve the response headers along with the data when using the API.
Below are a couple of ideas I've had as to how this could be implemented:
becomes:
without breaking change:
return {
...response.data,
headers: response.headers,
}
with breaking change:
return {
data: response.data,
headers: response.headers,
}
Is your feature request related to a problem? Please describe.
With the impending rate limit changes, there will be no way to fetch data from the new informational headers.
Describe the solution you'd like
A way to retrieve the response headers along with the data when using the API.
Below are a couple of ideas I've had as to how this could be implemented:
nordigen-node/lib/index.js
Line 91 in 9d535ca
becomes:
without breaking change:
with breaking change: