Skip to content

Commit

Permalink
Update UnisenderSMS.php
Browse files Browse the repository at this point in the history
Use POST instead of GET for API commands
  • Loading branch information
vetinary committed Feb 29, 2016
1 parent d1f68a3 commit 65e9627
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SimpleSoftwareIO/SMS/Drivers/UnisenderSMS.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function send(OutgoingMessage $message)
$this->buildCall('/sendSms');
$this->buildBody($data);

$raw = (string) $this->getRequest()->getBody();
$raw = (string) $this->postRequest()->getBody();

return $raw;
}
Expand Down Expand Up @@ -111,7 +111,7 @@ public function getMessage($messageId)
$this->buildCall('/checkSms');
$this->buildBody($data);

$raw = (string) $this->getRequest()->getBody();
$raw = (string) $this->postRequest()->getBody();

return $raw;
}
Expand All @@ -126,4 +126,4 @@ public function receive($raw)
{
throw new \RuntimeException('Unisender does not support Inbound API Calls.');
}
}
}

0 comments on commit 65e9627

Please sign in to comment.