예제 #1
0
def get_payload(endpoint):
    ttl      = cache.TIME_HOUR / 2
    endpoint = util.sources_endpoint(endpoint)

    return environment.json_from_url(endpoint, expires = ttl)
예제 #2
0
def get_payload(endpoint):
    ttl = cache.TIME_HOUR / 2
    endpoint = util.sources_endpoint(endpoint)

    return environment.json_from_url(endpoint, expires=ttl)
예제 #3
0
 def get_sources():
     return util.gzip_request(util.sources_endpoint(self.endpoint))