Esempio n. 1
0
 /**
  * Format the sms data for the nexbridge service
  *
  * @param  Sms    $sms
  * @return array
  */
 private function createSendSmsData(\Messenger\Sms $sms)
 {
     return ['GSM' => $sms->getTo(), 'user' => $this->user, 'sender' => $sms->getFrom(), 'SMSText' => $sms->getText(), 'password' => $this->password];
 }
Esempio n. 2
0
 /**
  * Format the sms data for the nexmo service
  *
  * @param  Sms    $sms
  * @return array
  */
 private function createSendSmsData(\Messenger\Sms $sms)
 {
     return ['to' => $sms->getTo(), 'type' => $sms->containsUnicode() ? 'unicode' : 'text', 'from' => $sms->getFrom(), 'text' => $sms->getText(), 'api_key' => $this->key, 'api_secret' => $this->secret];
 }