Page 1 of 1

how to send sms through API php

Posted: Sun Sep 16, 2018 3:26 am
by jhonatanmore
Hello everyone

I hope you can help me in this, I am new to these issues ... I want to send SMS text messages to the active users of the hotspot from the Api of Mikrotik (I already have their mobile numbers), the programming leguanje that I am using is PHP, I have a gsm modem with chip connected to my router board, and if I try to send SMS from the mikrotik terminal if I succeed, but from the API I can not make it work

please help me

Attached file from the mikrotik api that I am using
$API->comm("/tool/sms/send",array(
      			"port" => "usb1",
      			"channel" => "0",
      			"phone-number" => "$num_telef",
      			"message" => "$SMS",
      	));


I thank their answers

Re: how to send sms through API php

Posted: Sun Oct 11, 2020 11:41 am
by Cejvik
It's worlking now?