src/whatsprot.class.php
public function sendGetStatuses($jids)
    {
        if (!is_array($jids)) {
            $jids = [$jids];
        }

        $children = [];
        foreach ($jids as $jid) {
            $children[] = new ProtocolNode('user', ['jid' => $this->getJID($jid)], null, null);
        }

        $iqId = $this->nodeId['getstatuses'] = $this->createIqId();

        $node = new ProtocolNode('iq',
            [
                'to'    => Constants::WHATSAPP_SERVER,
                'type'  => 'get',
                'xmlns' => 'status',
                'id'    => $iqId,
            ], [
                new ProtocolNode('status', null, $children, null),
            ], null);

        $this->sendNode($node);
    }
public function sendGetStatuses($jids)
    {
        if (!is_array($jids)) {
            $jids = [$jids];
        }

        $children = [];
        foreach ($jids as $jid) {
            $children[] = new ProtocolNode('user', ['jid' => $this->getJID($jid)], null, null);
        }

        $iqId = $this->nodeId['getstatuses'] = $this->createIqId();

        $node = new ProtocolNode('iq',
            [
                'to'    => Constants::WHATSAPP_SERVER,
                'type'  => 'get',
                'xmlns' => 'status',
                'id'    => $iqId,
            ], [
                new ProtocolNode('status', null, $children, null),
            ], null);

        $this->sendNode($node);
    }
public function sendGetStatuses ( $ jids ) { if ( ! is_array ( $ jids ) ) { $ jids = [ $ jids ] ; } $ children = [ ] ; foreach ( $ jids as $ jid ) { $ children [ ] = new ProtocolNode ( 'user' , [ 'jid' => $ this -> getJID ( $ jid ) ] , null , null ) ; } $ iqId = $ this -> nodeId [ 'getstatuses' ] = $ this -> createIqId ( ) ; $ node = new ProtocolNode ( 'iq' , [ 'to' => Constants :: WHATSAPP_SERVER , 'type' => 'get' , 'xmlns' => 'status' , 'id' => $ iqId , ] , [ new ProtocolNode ( 'status' , null , $ children , null ) , ] , null ) ; $ this -> sendNode ( $ node ) ; }
Get the current status message of a specific user.

@param mixed $jids The users' JIDs
Get the current status message of a specific user .