sleep Action
Sleeps for a number of seconds. Use this action to pause the application flow.
The sleep properties are:
Property | Required/Optional | Default | Description |
---|---|---|---|
seconds | required | - | An integer. The number of seconds to sleep. |
-
Examples:
-
Sleep for 10 seconds:
"sleep" : { "seconds" : 10 }
-
-
API Reference:
class Sleep : TelephonyAction
Represents a sleep action.
Constructors:
Sleep(int seconds);
Examples:
-
Sleep for 10 seconds:
actions.Add(new Sleep(10));
-
-
API Reference:
Class Sleep Inherits TelephonyAction
Represents a sleep action.
Constructors:
New(seconds As Integer)
Examples:
-
Sleep for 10 seconds:
actions.Add(New Sleep(10))
-
-
API Reference:
class Sleep extends TelephonyAction
Represents a sleep action.
Constructors:
Sleep(int seconds);
Examples:
-
Sleep for 10 seconds:
actions.add(new Sleep(10));
-
-
API Reference:
class Sleep : TelephonyAction
Represents a sleep action.
Constructors:
Sleep(seconds)
Examples:
-
Sleep for 10 seconds:
from aculab.telephony_rest_api import Actions, Sleep my_actions = Actions(token='Usage example: Sleep') my_actions.add(Sleep(seconds=10)) response_body = my_actions.get_json()
-
-
API Reference:
The Sleep class
Introduction
Represents a sleep action.Class synopsis
class Sleep extends ActionBase { /* methods */ public __construct(int $seconds) }
Examples:
-
Sleep for 10 seconds:
$actions->add(new Aculab\TelephonyRestAPI\Sleep(10));
-