Exemplo n.º 1
0
 /**
  * Build request string.
  *
  * @param SMS $SMS
  *
  * @return string
  */
 public function buildRequest(SMS $SMS)
 {
     $request = $this->getConfig('url');
     $request .= 'api_key=' . $this->getConfig('key');
     $request .= '&api_secret=' . $this->getConfig('secret');
     $request .= '&from=' . $SMS->getSender();
     $request .= '&to=' . $SMS->getReceiver();
     $request .= '&text=' . urlencode($SMS->getMessage());
     return $request;
 }