def _api_call(self, path, data={}, http_method=requests.get):
        log.info('performing api request', path=path)
        response = http_method('/'.join([self.api_url, path]),
                               params={'auth_token': self.api_key},
                               data=data)
        log.debug('{} remaining calls'.format(
            response.headers['x-ratelimit-remaining']))
        return response.json()
Process an http call against the hipchat api
dataset/ETHPy150Open intuition-io/insights/insights/plugins/hipchat.py/Bot._api_call