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