Beispiel #1
0
 /**
  * Sends a SMS message.
  *
  * @param \ohanspace\sms\OutgoingMessage $message
  * @return void
  */
 public function send(OutgoingMessage $message)
 {
     $composedMessage = $message->composeMessage();
     $data = ['phones' => $message->getTo(), 'message' => $composedMessage];
     $this->buildCall('/pushapi/dynamic/server.php');
     $this->buildBody($data);
     //dd($this->getBody());
     $this->postRequest();
     $this->processDeliveryReport();
     return $this;
 }