def __call__(self, *args, **kwargs):
        params = {}
        params['args'] = args
        params['kwargs'] = kwargs
        post_data = json.dumps(params)
        if self.encryption:
            post_data = self.crypto_parser(post_data)
        try:
            resp = requests.get(self._url, data=post_data, headers=self.__HEADERS__)
        except Exception as e:
            raise RPCClient.FailedCall(e)
    
        if resp.status_code == 404:
            raise RPCClient.MissingMethod(
              'No remote method found for {0}'.format(self._name))
    
        try:
            ret = json.loads(resp.content)
        except Exception as e:
            raise RPCClient.InvalidSerializationError(e)
    
        if 'error' in ret:
            raise RPCClient.FailedCall(ret['error'])
    
        return ret['response']
dataset/ETHPy150Open rfyiamcool/swift_rpc/swift_rpc/client/__init__.py/_RPC.__call__/original