

def run(self, form_id, api_key, completed=True):
    api_key = (api_key if api_key else self.config['api_key'])
    completed = str(completed).lower()
    url = urlparse.urljoin(BASE_URL, form_id)
    headers = {
        
    }
    headers['Content-Type'] = 'application/x-www-form-urlencoded'
    params = {
        'key': api_key,
        'completed': completed,
    }
    data = urllib.urlencode(self)
    response = requests.get(url=url, headers=headers, params=data)
    if (response.status_code != httplib.OK):
        failure_reason = ('Failed to retrieve registrations: %s                 (status code: %s)' % (response.text, response.status_code))
        self.logger.exception(failure_reason)
        raise Exception(failure_reason)
    return response.json()

dataset/ETHPy150Open StackStorm/st2contrib/packs/typeform/actions/get_results.py TypeformAction.run/VarMisuse@91/129 `params`->`self`