examples/whatsapp.php
private function updateStatus()
    {
        if (isset($this->inputs['status']) && trim($this->inputs['status']) !== '') {
            $this->connectToWhatsApp();
            $this->wa->sendStatusUpdate($this->inputs['status']);
            exit(json_encode([
                'success'  => true,
                'data'     => "<br />Your status was updated to - <b>{$this->inputs['status']}</b>",
                'messages' => $this->messages,
            ]));
        } else {
            exit(json_encode([
                'success'  => false,
                'errormsg' => 'There was no text in the submitted status box!',
            ]));
        }
    }
private function updateStatus()
    {
        if (isset($this->inputs['status']) && trim($this->inputs['status']) !== '') {
            $this->connectToWhatsApp();
            $this->wa->sendStatusUpdate($this->inputs['status']);
            exit(json_encode([
                'success'  => true,
                'data'     => "<br />Your status was updated to - <b>{$this->inputs['status']}</b>",
                'messages' => $this->messages,
            ]));
        } else {
            exit(json_encode([
                'success'  => false,
                'errormsg' => 'There was no text in the submitted status box!',
            ]));
        }
    }
private function updateStatus ( ) { if ( isset ( $ this -> inputs [ 'status' ] ) && trim ( $ this -> inputs [ 'status' ] ) !== '' ) { $ this -> connectToWhatsApp ( ) ; $ this -> wa -> sendStatusUpdate ( $ this -> inputs [ 'status' ] ) ; exit ( json_encode ( [ 'success' => true , 'data' => "<br />Your status was updated to - <b>{$this->inputs['status']}</b>" , 'messages' => $ this -> messages , ] ) ) ; } else { exit ( json_encode ( [ 'success' => false , 'errormsg' => 'There was no text in the submitted status box!' , ] ) ) ; } }
Update a users Status.

@return void
Update a users Status .