def request(self, method, url, *args, **kwargs):
        """Constructs and sends a Request to the Xively API.

        Objects that implement __getstate__  will be serialised.

        """
        full_url = urljoin(self.base_url, url)
        if 'data' in kwargs:
            kwargs['data'] = self._encode_data(kwargs['data'])
        return super(Client, self).request(method, full_url, *args, **kwargs)
dataset/ETHPy150Open xively/xively-python/xively/client.py/Client.request/original