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
Post a Comment