Requests the current API usage.
(self)
| 1030 | ] |
| 1031 | |
| 1032 | def get_usage(self) -> Usage: |
| 1033 | """Requests the current API usage.""" |
| 1034 | status, content, json = self._api_call("v2/usage", method="GET") |
| 1035 | |
| 1036 | self._raise_for_status(status, content, json) |
| 1037 | |
| 1038 | if not isinstance(json, dict): |
| 1039 | json = {} |
| 1040 | return Usage(json) |
| 1041 | |
| 1042 | def create_glossary( |
| 1043 | self, |