AlexisMoniot
3 years agoNew Contributor
Use UUID requests in python
Hi everybody,
I 'm new user with swagger and a I have a issue with this requests
I try this :
params = {"CNX": "CNX", "Identifiant": "USER", "MotDePasse": "MyPW"}
response = requests.post(api_url, json=params)
responseJSON = response.json()
UUID = responseJSON['UUID']
I have my UUID but when I want to use it, not working :
example :
params = {"CNX": "CNX", "UUID": UUID}
response = requests.get(api_url_Doc, json=params)
responseJSON = response.json()
Always same response, then a try to use UUID with all operators. I seems to be with UUID but it works with the swagger interface testing...
<Response [500]>
{u'Message': u'Une erreur s\u2019est produite.'}
{u'Message': u'Une erreur s\u2019est produite.'}
thks