I have a form that is collecting a phone number and message to send using an SMS API on the web and it allows http URL to send. I can get this to work when I go directly to the address with my browser and even IN THE FORM when I hard code the api username, password, from number, to number, and the message with the cURL function, but not if I try to use the fields from my form. They will not populate by data.
Direct http URL in browser example that WORKS:
http://rest.nexmo.com/sms/xml?api_key=*********&api_secret=********&from=17137669056&to=15075551212&text=test!!!
Header:
Footer:
[attachment=0]cURL.png[/attachment]
The example above works and it will come in to my phone, but it isn't using the params from my form.
The setup that I think I want is this:
TARGET URL:
http://rest.nexmo.com/sms/xml?api_key=*********&api_secret=*********&from=17137669056&to={param_phone}&text={param_message}
Params/Fields map:
param_phone={freesmsnumber1}
param_message={freesmsmessage1}
[attachment=1]debug.png[/attachment]
Direct http URL in browser example that WORKS:
http://rest.nexmo.com/sms/xml?api_key=*********&api_secret=********&from=17137669056&to=15075551212&text=test!!!
Header:
[curl] =>
15075551212
***********************
0
17.65440000
0.00480000
310260
Footer:
curl
CURL OK : the CURL function was found on this server.
$curl_values:
curl_target_url: http://rest.nexmo.com/sms/xml?api_key=*********&api_secret=*********&from=17137669056&to=15075551212&text=test!!!
[attachment=0]cURL.png[/attachment]
The example above works and it will come in to my phone, but it isn't using the params from my form.
The setup that I think I want is this:
TARGET URL:
http://rest.nexmo.com/sms/xml?api_key=*********&api_secret=*********&from=17137669056&to={param_phone}&text={param_message}
Params/Fields map:
param_phone={freesmsnumber1}
param_message={freesmsmessage1}
[attachment=1]debug.png[/attachment]