Skip to content

Commit 140ebfb

Browse files
authored
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.
1 parent 57d470c commit 140ebfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Api/Smses.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ class Smses extends Api
5353
*/
5454
public function sendToContact($id, $contactId)
5555
{
56-
return $this->makeRequest($this->endpoint.'/'.$id.'/contact/'.$contactId.'/send', array(), 'POST');
56+
return $this->makeRequest($this->endpoint.'/'.$id.'/contact/'.$contactId.'/send');
5757
}
5858
}

0 commit comments

Comments
 (0)