I have a curl command that works and gives me back the JSON. Curl command:
curl -sS -k -L -H "Authorization: bearer <token>" -X GET https://IP:PORT/api/v1/namespaces
I tried with requests
and pycurl
modules which I found in the other posts but no luck.
Can anyone help me with finding the equivalent in python???