def init_handler(self):
    self.subdomain = self.options.get('subdomain')
    assert self.subdomain, 'subdomain is not defined'
    self.apitoken = self.options.get('apitoken')
    assert self.apitoken, 'apitoken is not defined'
    self.service_key = self.options.get('service_key')
    assert self.service_key, 'service_key is not defined'
    self.client = hc.AsyncHTTPClient()
def init_handler(self):
    self.subdomain = self.options.get('subdomain')
    assert self.subdomain, 'subdomain is not defined'
    self.apitoken = self.options.get('apitoken')
    assert self.apitoken, 'apitoken is not defined'
    self.service_key = self.options.get('service_key')
    assert self.service_key, 'service_key is not defined'
    self.client = hc.AsyncHTTPClient()