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

sql - can we replace full join with union of left and right join? why not? -

iOS: Performance of reloading UIImage(name:...) -

javascript - Parallax scrolling and fixed footer code causing width issues -