Hello Everyone,
I am working on a project where I need to integrate IBM Resilient with a 3rd Party Application. As I am new to Resilient, I need to know is there a postman example available to authenticate and query incidents?
Moreover, I wrote a python code and I am yet to check the same as I am waiting for the access. Could you kindly let me know whether the code approach will work either.
Code:
import json
from resilient import SimpleClient
RESILIENT_API_KEY_ID = "your_api_key_id"
RESILIENT_API_KEY_SECRET = "your_api_key_secret"
RESILIENT_URL = "https://your-resilient-instance.com"
client = SimpleClient({
"org": "organization_name", # Replace with your organization's name
"base_url": RESILIENT_URL,
})
client.connect(api_key_id=RESILIENT_API_KEY_ID, api_key_secret=RESILIENT_API_KEY_SECRET)
try:
response = client.get("/incidents")
incidents = response["data"]
print(json.dumps(incidents, indent=2))
except Exception as e:
print(f"An error occurred: {e}")
------------------------------
Hariharan Devaraj
------------------------------