Performs an external REST API request (over HTTP) and stores the result in a variable.
GET, POST, PUT, DELETE).
Default is GET.
https://api.example.com/v1/posts).
POST, PUT, etc). Provide as key-value
pairs. The body will be encoded based on the Content Type (e.g., JSON or form data).
Authorization: Bearer token). Provide as key-value
pairs.
POST/PUT requests. Options: application/json (JSON)
or application/x-www-form-urlencoded (Form Data). Default is application/json.
30.
wp_rest_result.
The result of the REST request will be available in the variable specified by Result variable name.
Use Query Parameters for URL parameters and Body Parameters for request body data. The body is
automatically encoded (e.g., to JSON if Content Type is set to application/json).
Example: To get data from an external API, use HTTP Method: 'GET' and
Full URL: 'https://api.example.com/v1/posts'.