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
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Add Readme instructions Jun 29, 2018
README.md 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

README.md

ClassMarker.com

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

https://www.classmarker.com/online-testing/manual/#api_webhooks

Developer Documentation

https://www.classmarker.com/online-testing/api/webhooks/

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: https://ngrok.com/

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)

STEP 2

Add webhook script to your webserver

STEP 3

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

STEP 4

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

Disclaimer

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.