I have an SMS API that I need to use to send a text message on a site that I'm building. There is a form on the website that collects a few details and the phone number, the message has to go to the phone number specified in the form.
The API link I have is:
How can I do this POST request using Ajax?
var formData = {
'name': name,
'location': location,
'mobile': mobile
};
$.ajax({
type: 'POST',
url: 'upload.php',
data: formData,
dataType: 'json',
encode: true
})
This is what I use with the form on the site, can I use the same with this API?