Enrol learner to course by API

Home Forums Legacy Support Support queries Update Issues Enrol learner to course by API

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #328884
    greyatom
    Participant
    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?
    #328996
    greyatom
    Participant
    This reply has been marked as private.
    #329040
    Anshuman Sahu
    Keymaster
    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
    #329057
    greyatom
    Participant
    On link you have provided there is no any documentation for /wp-json/wplms/v1/user/subscribe. Can you please check again?
    #329120
    Anshuman Sahu
    Keymaster
    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}}
    #329121
    greyatom
    Participant
    If I understand correctly then as soon as learner made payment outside LMS,
    • Use register API to register a learner on LMS
    • Use login API to generate a auth token for learner
    • Use subscribe API with learner authorization with course ID
    Instead can't we have extra parameters with subscribe API to add learner details.
    #329324
    Anshuman Sahu
    Keymaster
    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.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Enrol learner to course by API’ is closed to new replies.