This document describes how to call an external API using Transfer block.
Index
RESTful API Transfer
1) Configure Transfer - Https Protocol Blockset
No. | Function |
1 | Configuring the transfer API with Restful method using Protocol > https Block
- method : http method of external API
- end-point : External API call path
- header, body : Define request header and body data when calling external API |
2 | configuring response status code |
3 | API result - Containing Transfer result value in res variable |
4 | Json Encode - Encoding the transfer result value as JSON and checking the console log as an Info Log block |
5 | Checking the Transfer result value by containing it as result variable |