plaid / plaid-python

Python bindings for Plaid
https://plaid.com/docs
MIT License
430 stars 151 forks source link

Retrieving api url and status code of responses #428

Closed nickatnight closed 1 year ago

nickatnight commented 2 years ago

Hello,

What is the preferred method to get the request url and response status code (for 2xx codes) from a ModelNormal response object?

phoenixy1 commented 2 years ago

@otherchen do you happen to know the answer to this one (or know who might)? I'm not a deep expert in the python libraries.

spacether commented 2 years ago

If the client is regenerated with openapi-generator v6.2.0 then the response will be included when one gets a result back from an endpoint. One can see that response here api_response.response is type urllib3.HTTPResponse which includes