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

Re: Quiz Matching Question API Test

$
0
0
by Mohd Inam.  

actually  :

Setp-1 : wsfunction called mod_quiz_start_attempt

              moodlewsrestformat:json
              wsfunction:mod_quiz_start_attempt
              wstoken:818b0eb3222ff44120a12e92c29515bf
             quizid:71
             forcenew:1

i received attemped (14702) id and uniqueid (14724) (as a Question ID)

then 

Setp-2 : wsfunction called mod_quiz_process_attempt

passing the parameter

moodlewsrestformat:json
wsfunction:mod_quiz_process_attempt
wstoken:818b0eb3222ff44120a12e92c29515bf
attemptid:14702
timeup:1
finishattempt:1
data[0][name]:slot
data[0][value]:1
data[1][name]:q14724:1_answer
data[1][value]:1:1
data[2][name]:q14724:1_:sequencecheck
data[2][value]:1

and not properly Answer

 


Viewing all articles
Browse latest Browse all 2364


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