This document describes how to use a Protocol block.
Function | Explanation |
---|---|
method | The http(s) method to call the API. Applicable options are post, get, put, delete, patch. |
end-point | The endpoint (address) of the API to call. |
header | Header area of data to request to the server. |
body | Body area of data to request to server. |
options | Used when you need additional options for API calls |
Function | Explanation |
---|---|
timeout | Use when setting timeout on API. |
verify | If verify is required, use it in boolean form. |
allow redirect | Use in Boolean form when setting whether to redirect. |
proxy | Use to set up Proxy. |
ssl-cert | Use to apply ssl certificates. |
ssl-key | Use to apply ssl-key. |