HTTP
CastMate can send and receive basic HTTP Requests.
Actions
HTTP Request
Sends a basic HTTP Request.
Known Issue
You currently can't specify headers. This limits the usability of this with services which require authorization. This will be fixed in the future.
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.Known Issue
Must start with a /
.
Context:
query Object
URL Query parameters (After the ?)
body Object
JSON Parsed request body.