Subscrib to course using API

Home Forums Legacy Support Support queries How-to & Troubleshooting Subscrib to course using API

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #206665
    ramprasadv
    Spectator
    Do you provide any API to Subscribe the Course using API? If yes then provide some sample for same.
    #206859
    logan
    Member
    No, we are not using something like that. if user wants to subscribe in a course then user has to fill up the forms and then admin will approve or cancel the applications. this is the only way to get registered in a course.
    #209028
    SLC2019
    Spectator
    This reply has been marked as private.
    #209194
    logan
    Member

    Hi,

    Please refer the link below.

    Link : https://vibethemes.github.io/wplms-docs/developer-guide.html

    refer: http://prntscr.com/jc9cvh

    Please post this : { 'course_id':50 } 

    to http://site.com/wp-json/wplms/v1/user/subscribe with Authorization in headers.

    Remember to change id as per your need.

    #209973
    SLC2019
    Spectator
    Hi Your reply is very confusing. I cannot see any proper documentation. What do you mean by "Authorization in headers"? Can you provide further details that how to connect my php web app with WPLMS API? Is there any concrete example available? Thanks
    #210137
    Anshuman Sahu
    Keymaster
    Well we do not send the user id with course , we use auth token to authorize the user in api .   To get auth token on login  first you have to post the data with cleint id and state and username and password of user : http://prntscr.com/nrgzgr  I return you will get the auth token . then you have save this token in order to make request to subcsribe the course to user  : http://prntscr.com/nrh1tk   now make the hit with authorization in headers in order to subscribe the course to user : http://prntscr.com/nrh3g3 http://prntscr.com/nrh3m7  
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Subscrib to course using API’ is closed to new replies.