classmarker / retrieve-quiz-results-webhooks-csharp

ClassMarker is a secure online Quiz Maker platform for Business and Education for giving online tests and assessments. Retrieve Quiz results via Webhooks in C# in real time with ClassMarker Quiz maker.
https://www.classmarker.com
MIT License
0 stars 0 forks source link

ClassMarker.com

Retrieve Quiz Results Webhooks in C

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 C#.

How to Create a Webhook to receive Quiz results in cSharp

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

Developer Documentation

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

Testing Webhooks

Note: You must add your unique SECRET PHRASE which you are given when you create your Webhook in ClassMarker. See: 'SECRET_KEY' in the WebHookController.cs file.

You can test your Webhook script is working by sending sample Webhooks to your endpoint URL from your Edit 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

STEP 2 - Using Docker on Localhost

STEP 3

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.