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

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -