FrontlineSMS

FrontlineSMS let users send, receive and manage SMS over a mobile network.

Integrating FrontlineSMS with other technology

Information

Integrating FrontlineSMS with other technology

This group links users who have previously integrated FronlineSMS with other applications. 

Members: 6
Latest Activity: Jul 7, 2016

Discussion Forum

Integrating FrontlineSMS with a third party web service 5 Replies

 This one is for all who may want to use the Web Connection feature on version 2 to trigger HTTP requests. Our lead developer wrote a nice guide with sample code on how to set this up. Read all about…Continue

Started by Anne kamau. Last reply by Bruce Apr 5, 2016.

Comment Wall

Comment

You need to be a member of Integrating FrontlineSMS with other technology to add comments!

Comment by Martin Ayllon on December 23, 2014 at 10:04pm

Dear Anne:
As obvious it sounds in order to run the php code you must to install php-curl in your linux machine.
sudo apt-get install php5-curl curl
Now i configured the sms_api file as follows:
----
<?php //FILE: sms_api.php
function sendSMS($number,$message,$concat = 1) {

$url = "172.31.1.104"; // Set your frontlinesms or frontlinecloud webconnection url here
$secret = "123"; // Set the secret here
-------

The result was:

Array ( [0] =>

I did as recommends ratatatKE on https://gist.github.com/lesiki/9384612 change the
split command with the explode but the result was the same.

Comment by Anne kamau on December 17, 2014 at 6:07am

Hi Martin, 

Thanks for the feedback, I will have one of our developers look into this. 

Anne 

Comment by Martin Ayllon on December 14, 2014 at 8:50pm

Dear Anne:
Despite my efforts, I could not be able to send a SMS using the php example found in https://gist.github.com/lesiki/9384612.
I copied the two files index.php and sms_api.php changed the correct values but nothing happen.

The webservice configuration:
--------
HTTP Method: GET
Address: http://172.31.1.101
Keyword: None
Configured information sent to the server: message:${message_body}
API Key: 123
HTTP Web Connection
08 December, 2014 08:46
Address: http://172.31.1.101 (GET)
API URL : http://172.31.1.101:8130/api/1/webconnection/41
Keywords :
-----
The sms_api.php file
$url = "http://172.31.1.101:8130/api/1/webconnection/41/"; // Set your frontlinesms or frontlinecloud webconnection url here
$secret = "123"; // Set the secret here
-------

Please advice

Comment by Martin Ayllon on December 9, 2014 at 11:21pm

Hi:

 http://frontlinesms.ning.com/forum/topics/the-frontlinesms-web-conn...

Thanks to the previous thread I could confirm that my FrontlineSMS web service was working correct. 

 

The configuration was correct 

 

Members (6)

 
 
 

Photos

  • Add Photos
  • View All

© 2017   Created by FrontlineSMS Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service