eventbrite-sdk-javascript icon indicating copy to clipboard operation
eventbrite-sdk-javascript copied to clipboard

Way to access full request and response object

Open techgyani opened this issue 6 years ago • 1 comments

Current Behavior

In case of success, request function simply returns response body in JSON format.

Expected Behaviour

It should return response body and response headers. So that I have control whether to make next API call if limit is reached. The reason I am asking for this because your APIs return a very important header. x-rate-limit: token:..... 1/2000 reset=3600s, key:...... 1/2000 reset=3600s which is critical for not hitting API limit.

Your Environment

  • Node version: 10.14.0

techgyani avatar Jan 25 '19 04:01 techgyani

Thank you for the request. We agree with the need for this feature. We are looking into the most optimal way to implement this.

kwelch-eb avatar Jan 25 '19 20:01 kwelch-eb