(self)
Get data content sent over an API order
Get data content sent over an API order
Get data content sent over an API order
def get_data(self):
        """Get data content sent over an API order"""
        logger.debug("Fetch message #%s from API" % (self.seq_num))

        r = requests.get(self.server + '/message/' + str(self.seq_num),
                         cert=(self.tls_cert, self.tls_key))

        r.raise_for_status()

        if (r.status_code == requests.codes.ok):
            data = r.content
            return data
def get_data ( self ) : logger . debug ( "Fetch message #%s from API" % ( self . seq_num ) ) r = requests . get ( self . server + '/message/' + str ( self . seq_num ) , cert = ( self . tls_cert , self . tls_key ) ) r . raise_for_status ( ) if ( r . status_code == requests . codes . ok ) : data = r . content return data