How to get web api response in web viewer in thunkable

Hi All,
I am making a POST request and I am receiving a response, which I want it to display in a web viewer, can someone help me to do that?
I have tested the request on postman and there I am getting the correct results, but when I am trying to get it in web viewer, it is not working properly.

Thanks

And also, can someone please help me with cURL, that how to enter a cURL in thunkable web api, I just want to know that how can I deal with the body part and how can I enter body it in thunkable web api. This is my cURL.

curl --request POST \
     --url https://test.payu.in/_payment \
     --header 'accept: text/plain' \
     --header 'content-type: application/x-www-form-urlencoded' \
     --data key=JPM7Fg \
     --data surl=https://test-payment-middleware.payu.in/simulatorResponse \
     --data furl=https://test-payment-middleware.payu.in/simulatorResponse \
     --data amount=1 \
     --data firstname=Yasar \
     --data email=example@gmail.com \
     --data phone=1234567890 \
     --data 'address1=419-A, C-Block, Rama Heritage, Near Kotak Mahindra Bank, Central Spine, Vidyadhar Nagar' \
     --data 'address2=419-A, C-Block, Rama Heritage, Near Kotak Mahindra Bank, Central Spine, Vidyadhar Nagar' \
     --data city=Jaipur \
     --data state=Rajasthan \
     --data country=India \
     --data zipcode=302039 \
     --data txnid=asdufhuhsaidfbf \
     --data productinfo=iPhone \
     --data hash=4a4804c4d59b1025c1c6e1d7dde9cd7d7c92357701fb91eca7a13f361881ba141a6f958121494cda02f8188f3b56d8bd75cf7bcdcfc8ad15045954b702778f48

I am able to make request for now, and I am getting an HTML as response, can someone please help me that how can I render that HTML page inside a web viewer.

Hello @yasarbains7mhf9pj
Thank you for sharing more information
Unfortunately, the current way to present an HTML on the web viewer component is by uploading it to the Project assets.

It might be possible to build an HTML code that can get another HTML as text input.

You can see examples of sending and receiving messages and get further setup instructions here: Thunkable Web Viewer Extensions.

Hi,
I am making a web api Post request, and I am receiving an HTML response, which I want to render into web viewer. Is there any way to do that, I have tried so many times but couldn’t get it done.
Thank you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.