Skip to main content
Oct 3, 2019 10:22 AM UTC
Solved

Send REST API request from subscription

Do we have an ability to send REST API request from thing subscription?

In my case I need send request with query params to API Gateway on AWS. I tried use XmlHttpRequest, but that not work and send me message like this "Cannot call method "open" of undefined", "ReferenceError: "XMLHttpRequest" is not defined."

PaiChungAnswer
Oct 3, 2019 2:03 PM UTC

Have you tried using the Snippets/Contentloader functions?

It has predefined for you GET/PUT/POT text/xml/json

1 reply

PaiChungAnswer
Oct 3, 2019 2:03 PM UTC

Have you tried using the Snippets/Contentloader functions?

It has predefined for you GET/PUT/POT text/xml/json