Beta_Integrations/ProofpointThreatResponse/ProofpointThreatResponse.py
def add_to_list_command():
    ''' Adds given indicators to the given list ID in Threat Response '''
    list_id = demisto.args().get('list-id')
    indicators = argToList(demisto.args().get('indicator'))
    comment = demisto.args().get('comment')
    expiration = demisto.args().get('expiration')

    message = ''
    for indicator in indicators:
        add_to_list(list_id, indicator, comment, expiration)
        message += '{} added successfully to {}\n'.format(indicator, list_id)

    demisto.results(message)
 Adds given indicators to the given list ID in Threat Response 
Adds given indicators to the given list ID in Threat Response
Adds given indicators to the given list ID in Threat Response
def add_to_list_command():
    list_id = demisto.args().get('list-id')
    indicators = argToList(demisto.args().get('indicator'))
    comment = demisto.args().get('comment')
    expiration = demisto.args().get('expiration')
    message = ''
    for indicator in indicators:
        add_to_list(list_id, indicator, comment, expiration)
        message += '{} added successfully to {}\n'.format(indicator, list_id)
    demisto.results(message)
def add_to_list_command ( ) : list_id = demisto . args ( ) . get ( 'list-id' ) indicators = argToList ( demisto . args ( ) . get ( 'indicator' ) ) comment = demisto . args ( ) . get ( 'comment' ) expiration = demisto . args ( ) . get ( 'expiration' ) message = '' for indicator in indicators : add_to_list ( list_id , indicator , comment , expiration ) message += '{} added successfully to {}\n' . format ( indicator , list_id ) demisto . results ( message )
Adds given indicators to the given list ID in Threat Response
Adds given indicators to the given list ID in Threat Response
''' Adds given indicators to the given list ID in Threat Response '''