Silver Monkey: Web API Reference
Note: All requests to the web host use the settings in the WebUI window in the bot. Hostname, Username, and Password are sent with each request.
Simple Interface
(5:50) send post request to set {key} with a value of {value}, in section {section} on web host.
This sends a set of variables to the web host in the format of "Action=Set, Section=<Section>, Key=<Key>, and Value=<Value> " via the "Post" method
The bot expects the webhost to return.
V=1 (Version Header)
S=0 (Status Code, Non 0 is an Error)
(5:51) send post request to delete the {key} in section {section} on web host.
This sends a set of variables to the web host in the format of "Action=Delete, Section=<Section>, Key=<Key>, and Value=<Value> " via the "Post" method
The bot expects the webhost to return.
V=1 (Version Header)
S=0 (Status Code, Non 0 is an Error)
(5:52) send post request to get value for Key {key} in section {section} from webhost and put it into variable %variable.
This sends a set of variables to the web host in the format of "Action=Get, Section=<Section>, Key=<Key>, and Value=<Value> " via the "Post" method
The bot expects the webhost to return.
V=1 (Version Header)
S=0 (Status Code, Non 0 is an Error)
(Data to fill the Variable with)
(5:54) send get request to set {key} with a value of {value}, in section {section} on web host.
This sends a set of variables to the web host in the format of "Action=Set, Section=<Section>, Key=<Key>, and Value=<Value> " via the "Get" method
The bot expects the webhost to return.
V=1 (Version Header)
S=0 (Status Code, Non 0 is an Error)
(5:55) send get request to delete the value for key {key} in section {section} on the webhost.
This sends a set of variables to the web host in the format of "Action=Delete, Section=<Section>, Key=<Key>, and Value=<Value> " via the "Get" method
The bot expects the webhost to return.
V=1 (Version Header)
S=0 (Status Code, Non 0 is an Error)
(5:56) send get request to get value for Key {key} in section {section} from webhost and put it into variable %variable.
This sends a set of variables to the web host in the format of "Action=Get, Section=<Section>, Key=<Key>, and Value=<Value> " via the "Get" method
The bot expects the webhost to return.
V=1 (Version Header)
S=0 (Status Code, Non 0 is an Error)
(Data to fill the Variable with)
Advanced Interface
(5:57) store variable %Variable to the web stack
This Primes the web stack with Variables. Use as many of these line as you need to build your post request This Does not automatically set the Action Variable. You need to do that you're self
(5:58) send post request to send the web stack to the web host.
This sends a post request to the webhost with the web stack made of variables set up with (5:57). When this trigger completes it injects bot variables if there are any, with the prefix "WWW", returned by the web host and set off trigger "(0:70) When the bot receives a variable list by sending the web stack." when its complete
Example return packet:
V=1 (Version Header)
S=0 (Status Code, Non 0 is an Error)
Key1=value1
Key2=value2
(and so on)Monkey Speak Return Variables
%WWWKey1 = Value1
%WWWKey2 = Value2
(and so on)
(5:59) clear the web stack.
This clears everyting in the web stack
(5:60) remove variable %Variable from the web stack
This removes the variable name and its value from the stack