Search code examples
pythonpython-3.xpostgetpolling

POST/POLL/GET with Python


How can I use python submit an image (a URL link to an image) to an API, poll for job completion and get the results from the finished job (another image)? What are some steps I could take to do this? I have a username and password for the API as well.


Solution

  • You should take a look at the requests library. It contains all of the info you need for authentication as well as making POST and GET requests, provided you have the documentation for the API you want to use