api - Python's request.get only show 200 status -


i'm trying workd cisco prime api, , seems work when using postman (the output xml file). however, when try reproduce same python:

request.get(url, verify=false, auth=credentials) print(response) 

the response <response [200]> (and warning disabling ssl, that's not relevant)... use requests.auth.httpbasicauth generate "crdentials" variable

well, of course, it's after posting found answer: first, need search json, not xml , second, when want cast json, need response.json()


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -