Initialize the Bytez API client with an API key. Args: api_key (str): Your Bytez API key. dev (bool): Whether to use the development environment.
(self, api_key: str, dev: bool = False)
| 9 | """ |
| 10 | |
| 11 | def __init__(self, api_key: str, dev: bool = False): |
| 12 | """ |
| 13 | Initialize the Bytez API client with an API key. |
| 14 | |
| 15 | Args: |
| 16 | api_key (str): Your Bytez API key. |
| 17 | dev (bool): Whether to use the development environment. |
| 18 | """ |
| 19 | self._client = Client(api_key, dev) |
| 20 | self.list = self._List(self) # Initialize the list object |
| 21 | |
| 22 | class _List: |
| 23 | """A helper class to expose list functions under `bytez.list`.""" |