Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call list of certificates for a user via API #419

Open
LaurentLMC opened this issue Apr 14, 2021 · 3 comments · May be fixed by #644
Open

Call list of certificates for a user via API #419

LaurentLMC opened this issue Apr 14, 2021 · 3 comments · May be fixed by #644

Comments

@LaurentLMC
Copy link

Hi,

We are using the certificate module in moodle but our front-end site uses a different CMS and only makes calls to the moodle platform via the API.

Is there any way to send a request via the API to know if user X has any certificate available ?

Many thanks in advance for your help !

Lt

@mdjnelson
Copy link
Owner

This would require creating a web service. See https://docs.moodle.org/dev/Web_services. :) I don't have time to create that right now, sorry.

@karol-gro
Copy link

@mdjnelson I can see in our Moodle web service endpoints which (as I understand) already come from the customcert:

  • mod_customcert_delete_issue
  • mod_customcert_get_element_html
  • mod_customcert_save_element

So does it means that to get the list of issued certificates (for a user or total) it would be sufficient to add a method there?

@mdjnelson
Copy link
Owner

Yes those are the ones that I wrote in for the rearranging of elements page. If you create another one please create a PR I can review. :)

@michallohnisky michallohnisky linked a pull request Oct 2, 2024 that will close this issue
michallohnisky added a commit to AppsDevTeam/moodle-mod_customcert that referenced this issue Oct 2, 2024
This does not resolve Call list of certificates for a user via API mdjnelson#419 as that specifies getting certificates for a user, not from a date.
Added filter userid and customcertid
michallohnisky added a commit to AppsDevTeam/moodle-mod_customcert that referenced this issue Oct 2, 2024
This does not resolve Call list of certificates for a user via API mdjnelson#419 as that specifies getting certificates for a user, not from a date.
Added filter userid and customcertid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants