src/whatsprot.class.php
public function sendGetServerProperties()
    {
        $id = $this->createIqId();
        $child = new ProtocolNode('props', null, null, null);
        $node = new ProtocolNode('iq',
            [
                'id'    => $id,
                'type'  => 'get',
                'xmlns' => 'w',
                'to'    => Constants::WHATSAPP_SERVER,
            ], [$child], null);

        $this->sendNode($node);
    }
public function sendGetServerProperties()
    {
        $id = $this->createIqId();
        $child = new ProtocolNode('props', null, null, null);
        $node = new ProtocolNode('iq',
            [
                'id'    => $id,
                'type'  => 'get',
                'xmlns' => 'w',
                'to'    => Constants::WHATSAPP_SERVER,
            ], [$child], null);

        $this->sendNode($node);
    }
public function sendGetServerProperties ( ) { $ id = $ this -> createIqId ( ) ; $ child = new ProtocolNode ( 'props' , null , null , null ) ; $ node = new ProtocolNode ( 'iq' , [ 'id' => $ id , 'type' => 'get' , 'xmlns' => 'w' , 'to' => Constants :: WHATSAPP_SERVER , ] , [ $ child ] , null ) ; $ this -> sendNode ( $ node ) ; }
Send a request to get the current server properties.
Send a request to get the current server properties .