11-05-2021 10:55 AM
Hi all,
I'm getting responses back in HTML instead of json when making a few API calls, such as 'get users' or 'get tenants'. I'm able to do a 'get domains' api call and get back json just fine so I'm unclear what the difference is. I've tried setting my headers to accept json back but the api likes plain/text. Any help would be appreciated. Here is my class below in Python:
Solved! Go to Solution.
11-11-2021 07:52 AM
HI @Mike Hagans
I am not sure what is exactly wrong with this class, I can only see the definition but now they are called.
for better understanding please refer to some example scripts in github with the link below :
https://github.com/CiscoDevNet/stealthwatch-enterprise-sample-scripts/tree/master/python
Please note that starting SNA version 7.3.1 there is 2 tokens returned after authentication and they are required to be used for the other cals.
11-11-2021 07:52 AM
HI @Mike Hagans
I am not sure what is exactly wrong with this class, I can only see the definition but now they are called.
for better understanding please refer to some example scripts in github with the link below :
https://github.com/CiscoDevNet/stealthwatch-enterprise-sample-scripts/tree/master/python
Please note that starting SNA version 7.3.1 there is 2 tokens returned after authentication and they are required to be used for the other cals.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: