In an API I want to get the courses that are paid courses. I have read the API documentation, the API 'core_course_get_courses' doesn't provide the information that whether it is a paid course or self-enrollable course (free course). How can I know whether the course is a free one or paid one using API?
In reply to Crazy Coder
Re: How to know course is a free one or paid using webservice?
by Juan Leyva -
Hi,
please check web services available here:
https://docs.moodle.org/dev/Web_service_API_functions
You have:
core_enrol_get_course_enrolment_methods
and
core_course_get_courses_by_field