How to get a list of Course user Enrollment meta link values?

How to get a list of Course user Enrollment meta link values?

by Ian Hill -
Number of replies: 0

Hi,

I'm trying to figure out which Web Service Call(s) I would need to get a list of Course user Enrollment meta link values.

Under Administration >  Users> enrolled users >  Enrolment methods   in moodle I get info such as 

"Manual enrolments X
Guest access X
Category enrolments X
Self enrolment (Student) X
Course meta link (ABCD1234)  X"

X being the number of enrolled students etc.
What I need is to get the Meta link code e.g. ABCD1234 
But the call core_enrol_get_course_enrolment_methods doesnt seem to return that info, so unsure if that's the right call, or if I need to get it a different way.

Example JSON data return:
[{"id":11107,"courseid":2222,"type":"guest","name":"Guest access","status":true,"wsfunction":"enrol_guest_get_instance_info"},{"id":11108,"courseid":2222,"type":"self","name":"Self enrolment (Student)","status":"Enrolment is disabled or inactive"}]

Do I need to use a different call?
Or is the meta code got from somewhere using one of the values the call does return ?



Average of ratings: -