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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -