import requests
from api_auth import APICredentials, APIParams
  
class Task:
    def __init__(self):
        self.host = "https://services.uplynk.com"

    def run(self):
        self._get_ingest_point_task()
  
    def _get_ingest_point_task(self):
        task_id = '910594f1-7224-43f9-911c-93fb5925b337'  # Replace with the desired task ID.
        url = "{}{}{}".format(self.host, "/api/v4/managed-slicer/ingest-points/tasks/", task_id)

        headers = {'Content-Type': 'application/json'}
  
        response = requests.get(
            url, params=APIParams(APICredentials()).get_params({}), headers=headers
        )
  
        print(response.json())
  
Task().run()