src/whatsprot.class.php
public function sendGetPrivacySettings()
    {
        $msgId = $this->nodeId['privacy_settings'] = $this->createIqId();
        $privacyNode = new ProtocolNode('privacy', null, null, null);
        $node = new ProtocolNode('iq',
            [
                'to'    => Constants::WHATSAPP_SERVER,
                'id'    => $msgId,
                'xmlns' => 'privacy',
                'type'  => 'get',
            ], [$privacyNode], null);

        $this->sendNode($node);
    }
public function sendGetPrivacySettings()
    {
        $msgId = $this->nodeId['privacy_settings'] = $this->createIqId();
        $privacyNode = new ProtocolNode('privacy', null, null, null);
        $node = new ProtocolNode('iq',
            [
                'to'    => Constants::WHATSAPP_SERVER,
                'id'    => $msgId,
                'xmlns' => 'privacy',
                'type'  => 'get',
            ], [$privacyNode], null);

        $this->sendNode($node);
    }
public function sendGetPrivacySettings ( ) { $ msgId = $ this -> nodeId [ 'privacy_settings' ] = $ this -> createIqId ( ) ; $ privacyNode = new ProtocolNode ( 'privacy' , null , null , null ) ; $ node = new ProtocolNode ( 'iq' , [ 'to' => Constants :: WHATSAPP_SERVER , 'id' => $ msgId , 'xmlns' => 'privacy' , 'type' => 'get' , ] , [ $ privacyNode ] , null ) ; $ this -> sendNode ( $ node ) ; }
Send a request to get privacy settings.
Send a request to get privacy settings .