...
Creates a new pico and returns it's its id. No parameters are given.
...
Code Block | ||
---|---|---|
| ||
response = engine:newPico().klog("Response Structure: ") /* Response Structure: { "id" : <new_pico_id> } */ |
Note: newPico does not provide an eci. This function is used in conjunction with engine:createChannel to create a pico with both an id and eci. See wranglerNPE.krl for an example of how to fully create a pico according to a given prototype.
removePico
Info | ||
---|---|---|
| ||
removePico does not accept a map, but a single id value as its parameter. |
...
Code Block | ||
---|---|---|
| ||
response = engine:removeChannel({"pico_id": id, "eci": eci_of_channel}).klog("Response Structure: ") /* Response Structure: undefined //engine:removeChannel({"pico_id": id, "eci": eci_of_channel}) does not return anything */ |
registerRuleset
Parameter | Datatype | Required |
---|---|---|
<url> | <string> | YES |
<base> | <string> | YES |
The "base" key will have a value that contains the domain name where your krl file is located. ex: "http://raw.githubusercontent.com"
...