def safe_curl(self):
        """
        This will generate a curl equivalent call with the session ID
        and password removed
        :return: str
        """
        ret = 'curl -X %s ' % self.method
        ret += str(self.endpoint_url)
        if self.params:
            ret += '?' + '&'.join(
                ['%s=%s' % (
                    k,
                    [v, '[%s]' % k.upper()][k in ['A', 'token', 'password']])
                 for k, v in
                 self.params.items()])
        if self.request_data:
            ret += " -d '%s'" % json.dumps(self.request_data)
        if self.headers:
            ret += ''.join(
                [' -H "%s: %s"' % (
                    k, v if k != 'Authorization' else '[API_KEY]:') for k, v in
                 self.headers.items()])
        if self.cookies:
            ret += ' --cookie "%s"' % ('&'.join(
                ['%s=%s' % (k, '[%s]' % k.upper()) for k, v in
                 self.cookies.items()]),)
        return ret
def safe_curl ( self ) : ret = 'curl -X %s ' % self . method ret += str ( self . endpoint_url ) if self . params : ret += '?' + '&' . join ( [ '%s=%s' % ( k , [ v , '[%s]' % k . upper ( ) ] [ k in [ 'A' , 'token' , 'password' ] ] ) for k , v in self . params . items ( ) ] ) if self . request_data : ret += " -d '%s'" % json . dumps ( self . request_data ) if self . headers : ret += '' . join ( [ ' -H "%s: %s"' % ( k , v if k != 'Authorization' else '[API_KEY]:' ) for k , v in self . headers . items ( ) ] ) if self . cookies : ret += ' --cookie "%s"' % ( '&' . join ( [ '%s=%s' % ( k , '[%s]' % k . upper ( ) ) for k , v in self . cookies . items ( ) ] ) , ) return ret
This will generate a curl equivalent call with the session ID
        and password removed
        :return: str