mdjnelson / moodle-mod_customcert

Enables the creation of dynamically generated certificates with complete customisation via the web browser.
https://moodle.org/plugins/mod_customcert
GNU General Public License v3.0
94 stars 159 forks source link

Call list of certificates for a user via API #419

Open LaurentLMC opened 3 years ago

LaurentLMC commented 3 years ago

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 commented 3 years ago

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 commented 1 year ago

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

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 commented 1 year ago

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. :)