You need to add http
package to your project. Then wrap the http call to your Python REST endpoint in a Future
. I hate posting a link as an answer but in this case can't think of anything better than this cookboook example which answers your question perfectly!