Hi Team,
We are running paid marketing by our marketing team where they have published the landing pages which are not part of WordPress LMS. Because of this whenever learners pay on landing pages we have to enroll them manually onto the course. I believe this is a common problem for most of the companies offering online courses. Can you please provide what can be done here? Is there an API to create a USER and then enroll in the course?
Ok yes there is a subscribe call. :
https://documenter.getpostman.com/view/3430105/S1TYTvP9?version=latest#599914ae-07e2-4507-a92e-556bf2263536
You need token to subscribe.
/wp-json/wplms/v1/user/subscribe
Well yes its missing but its method is same :
endpoint : https://your-sitec.com/wp-json/wplms/v1/user/subscribe
Headers : Authorization : {your token here after logging in}
body : {course_id:{your course id here}}
Use register API to register a learner on LMS : this also provides the token and user data , no need to run a login request .
then use the subscribe api to subscribe the user to course .
Instead can’t we have extra parameters with subscribe API to add learner details.
Nice suggestion but right now we need the user on system , this will be added when we achieve exportable courses in wplms (exported courses can be used on scorm cloud or everywhere you want.)
Author
Posts
Viewing 7 posts - 1 through 7 (of 7 total)
The topic ‘Enrol learner to course by API’ is closed to new replies.