ImpSdk.bookAppointment(inputdata, function(err, data) {
if (err) {
// do something with error
} else {
// process the data
}
});
Example:
ImpSdk.bookAppointment(formdata, function(error, responsedata));
bookAppointment()
input properties
formdata: object
Form data for Booking Appointment that is being submitted
For mysltylist: campaignId is 3 and templateId is 3
callback: function
Callback function to be called when Appointment is submitted and response is ready
output properties
callback: function
Callback function is returned with Error and Data( Ex: callback(error, responsedata) )
error: Error
Error object with error details( For success: it is null )