Merge pull request #637 from VirusTotal/main

[VirusTotal Collections] Fix the export url
pull/640/head v2.4.176
Alexandre Dulaunoy 2023-09-14 15:48:08 +02:00 committed by GitHub
commit 7a0666b8af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ def create_collection(api_key, event_data):
response_data = response.json()
if response.status_code == 200:
link = response_data['data']['links']['self']
return f'{uuid}: {link}'
col_id = response_data['data']['id']
return f'{uuid}: https://www.virustotal.com/gui/collection/{col_id}/iocs'
error = response_data['error']['message']
if response.status_code == 400: