How does the API allow me to capture learners data and insert it into my own database/website?

Acquire 'contacts' of people taking your course in SalesForce, or any other CRM system.

Triggering emails or any other process on your website when someone takes the course.

How it Works

This feature requires minor programming effort at your side to accept the data sent by ProProfs. Please note that this API is supported only in some of our high-end premium packages such as those for business and enterprises.

To get started, you would need to make a file (your callback script) which will accept the data sent by the course through 'REQUEST' method. Whenever someone takes your course, it will call your callback script to accept the data. After accepting the data, you can write any custom code such as required for inserting the data into your database or CRM or triggering some business logic process.

Please follow the step mentioned below to setup callback URL:

Go to the Settings page, click on "Notifications" and check the box under the label "Notification via API." Type the call back URL indicating where the script is on your site and hit Save. It is the URL of the script which will accept the data in REQUEST method.

*The below screenshot is an example used to depict the live scenario, in this example we use a PHP path as the call back URL indicating server location of data storage. Users have to use the call back URL in their script for the server location of data storage.

There are 15 total attributes which we support and pass them to REQUEST when someone takes your course. It is similar to REST or SOAP API's.

You would use the REQUEST array method to capture the course attempt information. ProProfs Training Maker will call your callback URL and will post all of these variables to that particular script. Please see all the 15-course attributes(variables) below:

An Example: PHP and MySQL

If you are using PHP as server scripting, you can use the following example to test this feature.

If you are having trouble making the API work, try the following troubleshooting steps:

ProProfs originates all requests from public facing IP '67.228.18.170'. Ensure that this IP is not blocked.

After unblocking the IP, check if you are receiving requests from our server. You can execute the snippet titled 'course_response_test.php' on your server. Change the email address in this script to your email id. Then update the callback URL of the course under "Edit Settings" -> "Notifications" to call this URL. Check if you receive an email after you complete the course. It validates if responses from ProProfs are reaching your server.