Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4806

using python requests to capture response when API call sends a please wait response before sending full response

$
0
0

I have an API call that sends the following response when the request is made through browser,

{'Status': {'Code': 4, 'Message': 'Please wait'}}

After a few seconds the response changes to

{'Status': {'Code': 0, 'Message': 'The request is successful', 'TransactionId': 456719}}

I can see this from the network tab in the browser's developer tools.

In python, if I execute the request twice while using sleep in between, I get the second response. But can I achieve this without executing the API call twice?


Viewing all articles
Browse latest Browse all 4806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>