public function sendMessage($recipient, $message, array $params = null)
    {
        $sender = $this->createMessageSender();

        $msg = $this->createMessage($recipient, $message);

        $sender->setMessage($msg);
        if ($params) {
            $sender->setParams($params);
        }
        $response = $sender->send($this->testMode);
        $this->validateResponse($response);

        return $sender->extractResponse($response);
    }
public function sendMessage($recipient, $message, array $params = null)
    {
        $sender = $this->createMessageSender();

        $msg = $this->createMessage($recipient, $message);

        $sender->setMessage($msg);
        if ($params) {
            $sender->setParams($params);
        }
        $response = $sender->send($this->testMode);
        $this->validateResponse($response);

        return $sender->extractResponse($response);
    }
public function sendMessage ( $ recipient , $ message , array $ params = null ) { $ sender = $ this -> createMessageSender ( ) ; $ msg = $ this -> createMessage ( $ recipient , $ message ) ; $ sender -> setMessage ( $ msg ) ; if ( $ params ) { $ sender -> setParams ( $ params ) ; } $ response = $ sender -> send ( $ this -> testMode ) ; $ this -> validateResponse ( $ response ) ; return $ sender -> extractResponse ( $ response ) ; }
Send a single message.

@param  string $recipient
@param  string $message
@param  array  $params

@return mixed
Send a single message .