import requests
from api_auth import APICredentials, APIParams
  
class CloudSlicerLiveVersion:
    def __init__(self):
        self.host = "https://services.uplynk.com"

    def run(self):
        self._get_cloud_slicer_live_versions()
  
    def _get_cloud_slicer_live_versions(self):
        region_id = 'a7548f530d4347a7a627499ea71e1726'  # Replace with the desired region ID.
        url = "{}{}{}".format(self.host, "/api/v4/managed-slicer/slicers/versions/", region_id)

        headers = {'Content-Type': 'application/json'}
  
        response = requests.get(
            url, params=APIParams(APICredentials()).get_params({}), headers=headers
        )
  
        print(response.json())
  
CloudSlicerLiveVersion().run()