Beta_Integrations/ProofpointThreatResponse/ProofpointThreatResponse.py
def block_url_command():
    ''' Adds given URLs to the relevant blacklist in Threat Response '''
    list_id = demisto.params().get('blacklist_url')
    urls = argToList(demisto.args().get('url'))
    expiration = demisto.args().get('expiration')

    message = ''
    for url in urls:
        add_to_list(list_id, url, None, expiration)
        message += '{} added successfully to block_url list\n'.format(url)

    demisto.results(message)
 Adds given URLs to the relevant blacklist in Threat Response 
Adds given URLs to the relevant blacklist in Threat Response
Adds given URLs to the relevant blacklist in Threat Response
def block_url_command():
    list_id = demisto.params().get('blacklist_url')
    urls = argToList(demisto.args().get('url'))
    expiration = demisto.args().get('expiration')
    message = ''
    for url in urls:
        add_to_list(list_id, url, None, expiration)
        message += '{} added successfully to block_url list\n'.format(url)
    demisto.results(message)
def block_url_command ( ) : list_id = demisto . params ( ) . get ( 'blacklist_url' ) urls = argToList ( demisto . args ( ) . get ( 'url' ) ) expiration = demisto . args ( ) . get ( 'expiration' ) message = '' for url in urls : add_to_list ( list_id , url , None , expiration ) message += '{} added successfully to block_url list\n' . format ( url ) demisto . results ( message )
Adds given URLs to the relevant blacklist in Threat Response
Adds given URLs to the relevant blacklist in Threat Response
''' Adds given URLs to the relevant blacklist in Threat Response '''