API to specifically Pull Attendance Information from Moodle

API to specifically Pull Attendance Information from Moodle

by IKECHUKWU OGBUCHI -
Number of replies: 4
Hello everyone, my name is Ikechukwu, a research student and I am new to this community. This is my first time posting here.  As part of a research project over the summer I worked on developing an API using Python Flask to just pull specifically attendance information from Moodle data leveraging on the attendance plugin that exists. I was wondering if there is a way to publish this and make findings available to the community just in case there are people wondering about how to pull that information specifically from Moodle API outputs using Python. If there is, please let me know the steps I need to take to make it open source and available. I have attached some screenshots here in development on VStudio and testing with postman on random data.
Regards. 

Attachment postman.png
Attachment vscode.png
Average of ratings: -
In reply to IKECHUKWU OGBUCHI

Re: API to specifically Pull Attendance Information from Moodle

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators
cool! - feel free to add a section regarding this to the documentation wiki page for attendance here:
https://docs.moodle.org/400/en/Attendance_activity

If you have specific code examples you want to link to, the best place to do that is somewhere like a github repository - then you would just link to that repository from the section you add to the attendance docs.

thanks!
Average of ratings: Useful (2)
In reply to Dan Marsden

Re: API to specifically Pull Attendance Information from Moodle

by IKECHUKWU OGBUCHI -
Thank you for your response Dan, how do I add a section to the documentation wiki page, It is requesting I create a new account or login with a separate username and password for moodle.org as I am currently logged in on Moodle with my Microsoft based email account. Do I need to do this?
In reply to IKECHUKWU OGBUCHI

Re: API to specifically Pull Attendance Information from Moodle

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators
yeah - that's a pain and it's not easy to fix yourself I don't think - there's a link on the login page in the moodledocs wiki to help with that. - click on the "contact us" on the message that shows on the login page:

If you created a moodle.org account by logging in using your account on an external site, please contact us.

then on that page you should see the text "For account queries please use the Moodle.com contact form." with a link to the contact form.
Average of ratings: Useful (2)
In reply to Dan Marsden

Re: API to specifically Pull Attendance Information from Moodle

by Mary Cooch (personal account) -
Picture of Documentation writers Picture of Testers
Thanks Dan and yes, I have just got your message Ikechukwu and am responding so we can get you into the docs smile
Average of ratings: Useful (1)