def get_payload(endpoint): ttl = cache.TIME_HOUR / 2 endpoint = util.sources_endpoint(endpoint) return environment.json_from_url(endpoint, expires = ttl)
def get_payload(endpoint): ttl = cache.TIME_HOUR / 2 endpoint = util.sources_endpoint(endpoint) return environment.json_from_url(endpoint, expires=ttl)
def get_sources(): return util.gzip_request(util.sources_endpoint(self.endpoint))