How to add payload and use the post method to get response from an API in twincat 3?

155 Views Asked by At

enter image description hereNot getting appropriate response like I get on the postman application

I tried a few online APIs which give me response, but I need an option to be able to add a payload in my program. I am using tc3 iotbase library from the twincat library repo.

1

There are 1 best solutions below

0
Csaba Biro On

The HTTP POST request payload is builded by the FB_IotHttpRequest function block, when you call one of the send methods

You can use 2 option here: