Running a Command via REST API


#1

The PhantomBot REST API provides a PUT method to produce text, and commands, in chat.

The following data is required in the Headers of the PUT request:

user: userid to use for running a command or posting a message
message: message or !command
webauth: webauth from botlogin.txt

An example using curl:

% curl -X PUT \
-H 'webauth: mywebauthkey' \
-H 'user: illusionarybot' \
-H 'message: !mods' \
http://localhost:27000

event posted

Setting user points remotely by command line, HTTP, or API
Executing a command/message over API loads into timeout
Websocket API Python Script
Youtube player pause button when ingame
Hotkeys for Triggering commands/functions