Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/twofactor_gateway.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2019-12-10 16:18:25 +0300
committerGitHub <noreply@github.com>2019-12-10 16:18:25 +0300
commita29f08196c741feb4d805a21ad314317703da20c (patch)
tree65fe9f23993f500a4df4b833984d8edd23534799 /lib
parent0fe61e3b15b6c64fa7f7bee28be506b71c5ec8fc (diff)
parentbc9959a485a1ef1ca35f34a3011c9520e279ae53 (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.php12
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) {