(self, response, json=False, binary=False)
| 277 | raise create_api_error_from_http_exception(e) from e |
| 278 | |
| 279 | def _result(self, response, json=False, binary=False): |
| 280 | assert not (json and binary) |
| 281 | self._raise_for_status(response) |
| 282 | |
| 283 | if json: |
| 284 | return response.json() |
| 285 | if binary: |
| 286 | return response.content |
| 287 | return response.text |
| 288 | |
| 289 | def _post_json(self, url, data, **kwargs): |
| 290 | # Go <1.1 can't unserialize null to a string |
no test coverage detected