credentials.py 361 B

1234567891011121314
  1. import base64
  2. class Client:
  3. CLIENT_ID = "global-cube-its"
  4. CLIENT_SECRET = "SKVif1SvESxZo7WWCehc5mY0"
  5. @staticmethod
  6. def authorization_base64():
  7. code = f"{Client.CLIENT_ID}:{Client.CLIENT_SECRET}"
  8. code_bytes = code.encode("ascii")
  9. base64_bytes = base64.b64encode(code_bytes)
  10. return base64_bytes.decode("ascii")