How to bind a form on the website via the API with a callback service?

Could you tell me the site has a simple form (the application is in the mail), there is a widget callback Callbackhunter. You need to send the numbers in this simple form was connecting with the Manager in the widget Callbackhunter.

There is a API function for this simple shape, with a callback service.. the parameter which is passed the customer number. Here it is - CBHCore.api.sendCall({phone: '+71234567898' }).

Where to insert this function? in the script that connects the form with the php handler?

I.e. something like this:

 CBHCore.api.sendCall({phone: 'customer number' })

 var data = $(this).serialize();
 type: 'POST',
 url: 'send.php',
 data: data, 
 success: function(data){ 

March 23rd 20 at 19:22
0 answer

Find more questions by tags APIJavaScript