src/whatsprot.class.php
public function sendGetServicePricing($lg, $lc)
    {
        $msgId = $this->createIqId();
        $pricingNode = new ProtocolNode('pricing',
            [
                'lg' => $lg,
                'lc' => $lc,
            ], null, null);
        $node = new ProtocolNode('iq',
            [
                'id'    => $msgId,
                'xmlns' => 'urn:xmpp:whatsapp:account',
                'type'  => 'get',
                'to'    => Constants::WHATSAPP_SERVER,
            ], [$pricingNode], null);

        $this->sendNode($node);
    }
public function sendGetServicePricing($lg, $lc)
    {
        $msgId = $this->createIqId();
        $pricingNode = new ProtocolNode('pricing',
            [
                'lg' => $lg,
                'lc' => $lc,
            ], null, null);
        $node = new ProtocolNode('iq',
            [
                'id'    => $msgId,
                'xmlns' => 'urn:xmpp:whatsapp:account',
                'type'  => 'get',
                'to'    => Constants::WHATSAPP_SERVER,
            ], [$pricingNode], null);

        $this->sendNode($node);
    }
public function sendGetServicePricing ( $ lg , $ lc ) { $ msgId = $ this -> createIqId ( ) ; $ pricingNode = new ProtocolNode ( 'pricing' , [ 'lg' => $ lg , 'lc' => $ lc , ] , null , null ) ; $ node = new ProtocolNode ( 'iq' , [ 'id' => $ msgId , 'xmlns' => 'urn:xmpp:whatsapp:account' , 'type' => 'get' , 'to' => Constants :: WHATSAPP_SERVER , ] , [ $ pricingNode ] , null ) ; $ this -> sendNode ( $ node ) ; }
Send a request to get the current service pricing.

@param string $lg
Language
@param string $lc
Country
Send a request to get the current service pricing .