GithubHelp home page GithubHelp logo

odongohcoder / api-php-mysql-sample-code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from classmarker/api-php-mysql-sample-code

0.0 0.0 0.0 21 KB

ClassMarker is a secure online Quiz Maker platform for Business and Education for giving online exams and assessments. Our API gives access to downloading Test results to 3rd party systems.

Home Page: https://www.classmarker.com

License: MIT License

PHP 97.41% CSS 2.59%

api-php-mysql-sample-code's Introduction

ClassMarker.com

API REQUEST SAMPLE PHP / MYSQL CODE

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

Our API gives access to downloading Test results to 3rd party systems.

Use the included files to:

  1. Create database tables,
  2. Connect to ClassMarker and download results available to your API KEY
  3. Insert results into your database
  4. View downloaded results

Note: See Directory "example_response_files" to locally host response files to easily request and debug your application using local files (Handy if your ClassMarker.com account does not have test results saved as yet).

HOW TO BUILD A QUIZ MAKER

Our API allows you to retrieve your Quiz results directly from ClassMarker.com. You can use this sample PHP/MySQL code with ClassMarker to save you time having to build a quiz maker system.

Online Documentation

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

Getting Started

STEP 1

Create a MySQL database and run the SQL to create 5 tables

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 .php files to your webserver

STEP 3

Move credentials.php to a safe location un-accessible from www Configure credentials.php to add database access and your support email address.

STEP 4

Configure request_classmarker_results.php to download results from Links or groups as instructed in the file

See: https://www.classmarker.com/online-testing/api/developers#explain

STEP 5

Run request_classmarker_results.php to download results request_classmarker_results.php - can be called from Browser or Command line

STEP 6

View view_classmarker_results.php in browser to see downloaded results.

STEP 7

You can then either

  1. Run a cron job hourly or daily (depending on how often tests are taken under your account).
  2. Just select request_classmarker_results.php from a Browser to download latest results

Disclaimer

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

api-php-mysql-sample-code's People

Contributors

eltreno avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.