Skip to content
ClassMarker is a secure online Quiz Maker platform for Business and Education for giving online tests and assessments. Retrieve Quiz results via Webhooks in PHP in real time with ClassMarker Quiz maker.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Add Readme instructions Jun 29, 2018 Update README for creating Quiz results webhooks in PHP Jul 17, 2018
classmarker-retrieve-quiz-results-webhooks.php Update CLASSMARKER_WEBHOOK_SECRET_PHRASE text Jun 29, 2018

Retrieve Quiz Results Webhooks in PHP

ClassMarker is a secure online Quiz Maker platform for Business and Education for giving exams and assessments.

Our WEBHOOKS allow you to receive Quiz results in real time using PHP.

How to Create a Webhook to receive Quiz results in PHP

Developer Documentation

Testing Webhooks

First: You must add your unique SECRET PHRASE which you are given when you create your Webhook in ClassMarker. See: 'CLASSMARKER_WEBHOOK_SECRET_PHRASE' in this script.

You can test your Webhook script is working by sending sample Webhooks to your endpoint URL from your Webhooks page in ClassMarker.

The difference between LIVE Webhooks and VERIFICATION Webhooks:

The payload_status element in the JSON body will read: ...{ "payload_status", "live" // For live actual User results },... OR ...{ "payload_status", "verify" // When Verifying from your Webhooks page },...

Testing Webhooks locally

For testing locally, you create a secure URL to your localhost using:

Getting Started

STEP 1 - Optional pending your requirements

Create a database to store results in. A sample table scheme is available at: Github ClassMarker API (Question and Answer tables are not included). See: create_classmarker_tables.txt

  • classmarker_tests: for tests information (test name and ID)
  • classmarker_groups: for group information (group name and ID)
  • classmarker_links: for link information (link name and ID)
  • classmarker_group_results: for group results (holds test results taken within Groups)
  • classmarker_link_results: for link results (holds test results taken from Direct links)


Add webhook script to your webserver


Replace CLASSMARKER_WEBHOOK_SECRET with your Webhook Secret from your Webhooks page in ClassMarker


Recommended to log webhooks to a local file to see you are receiving webhooks OK.


ClassMarker Pty Ltd accepts no responsibility whatsoever from usage of these scripts and shall be held harmless from any and all litigation, liability, and responsibilities.

You can’t perform that action at this time.