/** * * @author ClasssMarker Pty Ltd * @see http://www.classmarker.com/online-testing/api/developers * @version 1 * @date June 2012 * * 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. */ 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 account does not have test results saved as yet). ============================================================== == == Lets get set up. == ============================================================== ===== 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: http://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