Skip to content Skip to main navigation Skip to footer

Lookng for code to query the number of QSM quizzes

Welcome to QSM Support Forum. Forums QSM Pro Support Lookng for code to query the number of QSM quizzes

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1653
    Bob EastonBob Easton
    Participant

    We would like to advertise how many quizzes we have on our site and how many times the quizzes have been taken. I know the numbers are available because I see them on the dashboard. What code should I use to fetch them when needed?

    Many thanks,
    Bob

    #1657
    Kriti SharmaKriti Sharma
    Keymaster

    Sorry Bob,

    But this functionality is not available right now.

    Regards,
    Kriti

    #1658
    Bob EastonBob Easton
    Participant

    THANKS Kriti,
    I found some code in qsm > php > admin > dashboard-widgets.php that I can borrow.

    All the best,
    Bob

    #1659
    Kriti SharmaKriti Sharma
    Keymaster

    Ok, Bob.

    #17358
    james charlesjames charles
    Participant

    Hi Bob, if your goal is to fetch quiz stats dynamically, you’ll likely need to use your platform’s API or database queries rather than just dashboard scraping. Most platforms provide endpoints to get counts of quizzes and attempts in JSON format, which you can then use in your code. For testing or running the app on Android, tools like asd player apk can help you simulate and check API responses on the go, making it easier to debug and ensure your fetch requests return accurate data.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.