src/whatsprot.class.php
public function sendGetPrivacyBlockedList()
    {
        $msgId = $this->nodeId['privacy'] = $this->createIqId();
        $child = new ProtocolNode('list',
            [
                'name' => 'default',
            ], null, null);

        $child2 = new ProtocolNode('query', [], [$child], null);
        $node = new ProtocolNode('iq',
            [
                'id'    => $msgId,
                'xmlns' => 'jabber:iq:privacy',
                'type'  => 'get',
            ], [$child2], null);

        $this->sendNode($node);
    }
public function sendGetPrivacyBlockedList()
    {
        $msgId = $this->nodeId['privacy'] = $this->createIqId();
        $child = new ProtocolNode('list',
            [
                'name' => 'default',
            ], null, null);

        $child2 = new ProtocolNode('query', [], [$child], null);
        $node = new ProtocolNode('iq',
            [
                'id'    => $msgId,
                'xmlns' => 'jabber:iq:privacy',
                'type'  => 'get',
            ], [$child2], null);

        $this->sendNode($node);
    }
public function sendGetPrivacyBlockedList ( ) { $ msgId = $ this -> nodeId [ 'privacy' ] = $ this -> createIqId ( ) ; $ child = new ProtocolNode ( 'list' , [ 'name' => 'default' , ] , null , null ) ; $ child2 = new ProtocolNode ( 'query' , [ ] , [ $ child ] , null ) ; $ node = new ProtocolNode ( 'iq' , [ 'id' => $ msgId , 'xmlns' => 'jabber:iq:privacy' , 'type' => 'get' , ] , [ $ child2 ] , null ) ; $ this -> sendNode ( $ node ) ; }
Send a request to get a list of people you have currently blocked.
Send a request to get a list of people you have currently blocked .