- import base64
- class Client:
- CLIENT_ID = "global-cube-its"
- CLIENT_SECRET = "SKVif1SvESxZo7WWCehc5mY0"
- @staticmethod
- def authorization_base64():
- code = f"{Client.CLIENT_ID}:{Client.CLIENT_SECRET}"
- code_bytes = code.encode("ascii")
- base64_bytes = base64.b64encode(code_bytes)
- return base64_bytes.decode("ascii")
|