Clear
The clear action removes all previously defined actions. You can use this action to ensure that no actions are executed before proceeding with a new set of actions.
- Curl
- Node.js
- Python
Hangup action JSON
[
{
action: "clear",
}
]
Parameters type and description
Parameter | Type | Description |
---|---|---|
*action | string | The PCMO action to control the flow of the call. |
Note
All above parameters are mandatory.
To use PCMO, you need to create an instance of the PiopiyAction
class and define the actions you want to perform. The clear()
method can be used to remove all defined actions from the current session before executing any new actions.
const {PiopiyAction} = require("piopiy");
const action = new PiopiyAction();
action.clear()
To use PCMO, you need to create an instance of the PiopiyAction
class and define the actions you want to perform. The clear()
method can be used to remove all defined actions from the current session before executing any new actions.
from piopiy import Action
action = Action()
action.clear()