Do you provide any API to Subscribe the Course using API? If yes then provide some sample for same.
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.
This reply has been marked as private.
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.
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
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