diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2019-12-10 16:18:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-10 16:18:25 +0300 |
commit | a29f08196c741feb4d805a21ad314317703da20c (patch) | |
tree | 65fe9f23993f500a4df4b833984d8edd23534799 /lib | |
parent | 0fe61e3b15b6c64fa7f7bee28be506b71c5ec8fc (diff) | |
parent | bc9959a485a1ef1ca35f34a3011c9520e279ae53 (diff) |
Merge pull request #293 from astriffe/patch-1
Upgrade eCall SMS gateway to their new API spec
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/Gateway/SMS/Provider/EcallSMS.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Service/Gateway/SMS/Provider/EcallSMS.php b/lib/Service/Gateway/SMS/Provider/EcallSMS.php index e6bd083..d4bbb53 100644 --- a/lib/Service/Gateway/SMS/Provider/EcallSMS.php +++ b/lib/Service/Gateway/SMS/Provider/EcallSMS.php @@ -56,15 +56,13 @@ class EcallSMS implements IProvider { $password = $config->getPassword();
$senderId = $config->getSenderId();
try {
- $this->client->get('https://www.ecall.ch/ecallurl/ecallurl.ASP', [
+ $this->client->get('https://url.ecall.ch/api/sms', [
'query' => [
- 'WCI' => 'Interface',
- 'Function' => 'SendPage',
- 'AccountName' => $user,
- 'AccountPassword' => $password,
+ 'username' => $user,
+ 'password' => $password,
'Callback' => $senderId,
- 'Address' => $identifier,
- 'Message' => $message,
+ 'address' => $identifier,
+ 'message' => $message,
],
]);
} catch (Exception $ex) {
|