Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2364

Quiz: review attempts

$
0
0

by Ricardo Flores Cabal.  


Hi guys

I'm developing an webapp using angularjs and phonegap. A few days ago, I started to work with quiz services, when I process the quiz, I'm using this url:

https://mysite.com/webservice/rest/server.php?moodlewsrestformat=json&attemptid=230&wstoken=<token>&wsfunction=mod_quiz_process_attempt&finishattempt=1

Answers are being save it with mod_quiz_save_attempt.

Once the quiz is saved and finished, in my database, in table mdl_quiz_attempts, the attempt has the column preview as "1"

My problem is that "1", when I used mod_quiz_get_user_attempts for getting the attempts of my user doesn't show the attempt that I already did.

Are there a way to make preview as "0" using mod_quiz_process_attempt?


Thank you!




Viewing all articles
Browse latest Browse all 2364

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>