Yes that is expected. What are you trying to achieve?
Do not send SMS (
I need a sms gateway. I want to send messages to their customers about the successful registration. I want my script to send POST the recipient’s number and the message text to file sms.php and he was sending an SMS through my phone.
I do not quite understand how the script works. (
I get a sms and it is written to the file test.tht - it works!
But how to make the sending of SMS from the site to the number of the recipient with my text?
You have to code the script to do that. The demo script is there to guide you on how to integrate SMSsync with your web service. You might be interested in the send_instant_message
function of the demo code.
Thank you, enabled, but nothing has changed (
I need only function send_instant_message - Do not send SMS (
but she did not want to work (
Make sure you have Get Reply from Server
enabled. I don’t think it’s enabled. The image I shared with you, I took a wild guess because I can’t read Russian so I could be wrong with the field I asked you to enable.
Once you have it enabled make sure the server returns the sample JSON response
{"
payload":{
"success":true,
"task":"send",
"secret":"123456",
"messages":[
{
"to":"+79212265506",
"message":"Your message has been received",
"uuid":"1ba368bd-c467-4374-bf28"
}]
}
}
Alternatively, you can enable Reply Message
and use the configured canned response. When you have that enabled, make sure your server returns
{
"payload":
{
"success": true,
"error": null
}
}
Hi, I already encountered the same issue. I already enabled Reply From the Server and Enable Message Results API however, instant message was not sent.
Hi everyone,
I’m quite new with Ushahidi platform. I want to enable SMSsync. I followed the instruction explained here: http://smssync.ushahidi.com/configure/ but I do not have a setting option on application I installed on phone.
Can anyone help me please? Is there any step by step instruction (explained every single steps) to enable SMSsync?
Thanks in advance,
Bests
sorry to bring this topic up again… i already turn on get reply from server
and try to use
function send_task()
{
{
$m = "Sample Task Message";
$f = "+6285741344875";
$s = "true";
$reply[0] = [
"to" => $f,
"message" => $m,
"uuid" => "1ba368bd-c467-4374-bf28"
];
$response = json_encode(
["payload"=>[
"success"=>$s,
"task"=>"send",
"secret" => "123456",
"messages"=>array_values($reply)]
]);
}
}
but its not going send any message
SMSsync uses the HTTP and HTTPS protocols for communication.
To start the SMSsync Gateway, you’ll need to specify a Sync URL. This URL is where all incoming SMS will be transmitted to. Remember to enter the full URL including the filename. A typical example will be http://somedomain.com/index.php
For security you can specify a secret key to be sent to the Sync URL. If the secret key doesn’t match on the server, the Sync URL can ignore the transmission.
Give access from your android phone app permission then send the message again this start working for more click here