From f09d84e2462cfaa69abc001deb72e1cc72bf5fcb Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 9 May 2024 19:45:04 +0100 Subject: [PATCH] Modified just the print statement in readme --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 06b517e..7d0c5ea 100644 --- a/README.md +++ b/README.md @@ -46,14 +46,17 @@ otx.get_indicator_details_full(IndicatorTypes.DOMAIN, "google.com") Adding content to OTX: ``` from OTXv2 import OTXv2 + otx = OTXv2("API_KEY") -name = 'Test Pulse' +name = "Test Pulse" indicators = [ - {'indicator': '69.73.130.198', 'type': 'IPv4'}, - {'indicator': 'aoldaily.com', 'type': 'Domain'} + {"indicator": "69.73.130.198", "type": "IPv4"}, + {"indicator": "aoldaily.com", "type": "Domain"}, ] -response = otx.create_pulse(name=name ,public=True ,indicators=indicators ,tags=[] , references=[]) -print str(response) +response = otx.create_pulse( + name=name, public=True, indicators=indicators, tags=[], references=[] +) +print(str(response)) ``` Additional Examples: