lib/hz2600/Kazoo/Api/Entity/Device.php
public function performAction($action, $data = null) {
        $this->setTokenValue($this->getEntityIdName(), $this->getId());

        $payload = new \stdClass;
        $payload->data = new \stdClass;
        $payload->data->action = $action;
        $payload->data->data = is_null($data) ? new \stdClass : $data;

        $this->put(json_encode($payload));
    }
public function performAction($action, $data = null) {
        $this->setTokenValue($this->getEntityIdName(), $this->getId());

        $payload = new \stdClass;
        $payload->data = new \stdClass;
        $payload->data->action = $action;
        $payload->data->data = is_null($data) ? new \stdClass : $data;

        $this->put(json_encode($payload));
    }
public function performAction ( $ action , $ data = null ) { $ this -> setTokenValue ( $ this -> getEntityIdName ( ) , $ this -> getId ( ) ) ; $ payload = new \ stdClass ; $ payload -> data = new \ stdClass ; $ payload -> data -> action = $ action ; $ payload -> data -> data = is_null ( $ data ) ? new \ stdClass : $ data ; $ this -> put ( json_encode ( $ payload ) ) ; }
Perform an action on this device

@param string $action The name of the action to perform
@param stdClass|null $data Optional extra data to control how the action
is performed
Perform an action on this device