import requests
from api_auth import APICredentials, APIParams
  
class RayDetails:
    def __init__(self):
        self.host = "https://services.uplynk.com"

    def run(self):
        self._get_rays()
  
    def _get_rays(self):
        publishing_schedule_id = 'a9b1a994baab48adbcfceb23523bbab5'
        url = "{}{}{}".format(self.host, "/api/v4/syndication-ray-details/", publishing_schedule_id)
 
        headers = {'Content-Type': 'application/json'}
  
        response = requests.get(
            url, params=APIParams(APICredentials()).get_params({}), headers=headers
        )
  
        print(response.json())
  
RayDetails().run()