HTTP

CastMate can send and receive basic HTTP Requests.

Actions

HTTP Request

Sends a basic HTTP Request.

Configuration:
Method HTTP Method
GET, POST, DELETE, PUT, or PATCH
Address string
The URL to make the request to.
BODY string
The data you'd like in the request body.

Triggers

HTTP Endpoint

Receives an HTTP Request

Configuration:
Method HTTP Method
GET, POST, DELETE, PUT, or PATCH
Route string
Subroute off of /plugins/endpoints/. So if you put /test as the route, to hit the endpoint with an http request you'd use the address http://localhost:85/plugins/endpoints/test. The port may not be 85 if you changed it under the CastMate settings.
Context:
params Object
Params parsed out using the express.js router rules.
query Object
URL Query parameters (After the ?)
body Object
JSON Parsed request body.