From 140ebfbcd301ae8f4b2b2e1cde7fcfa840fd6d39 Mon Sep 17 00:00:00 2001 From: Pavel Zhytomirsky Date: Wed, 19 Dec 2018 16:46:34 +0200 Subject: [PATCH] SMS send to contact GET method In last mautic version send SMS to contact expects GET method and not POST. So the method `sendToContact` always responses with 404. Not sure if it is must be fixed in library or on Mautic side. --- lib/Api/Smses.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Api/Smses.php b/lib/Api/Smses.php index 4b07cad7..caf466f6 100644 --- a/lib/Api/Smses.php +++ b/lib/Api/Smses.php @@ -53,6 +53,6 @@ class Smses extends Api */ public function sendToContact($id, $contactId) { - return $this->makeRequest($this->endpoint.'/'.$id.'/contact/'.$contactId.'/send', array(), 'POST'); + return $this->makeRequest($this->endpoint.'/'.$id.'/contact/'.$contactId.'/send'); } }