Skip to main content
13-Aquamarine
October 3, 2019
Solved

Send REST API request from subscription

  • October 3, 2019
  • 1 reply
  • 1308 views

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."

Best answer by PaiChung

Have you tried using the Snippets/Contentloader functions?

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

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I
October 3, 2019

Have you tried using the Snippets/Contentloader functions?

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