Can you please provide me API endpoints for following cases:
1. User profile details
2. Update user profile
3. Get course content
4. Submit quiz and get results.
I tried using profile and course endpoints, that gives me HTML content, but as I am building my custom app, I need to get the JSON data.
Hi this is our old api for profile for V3 : https://documenter.getpostman.com/view/3430105/S1TYTvP9
This reply has been marked as private.
Ok your data and api url is correct , please goto wp-admin -> lms -> settings -> api -> enable these :
https://prnt.sc/1r7ogbk
This reply has been marked as private.
Well the state parameter in your data should match the "state" settings in lms -> settings -> api ->
https://prnt.sc/1reazfr
If still not working then please share your site url , admin creds to check this out .
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
Ok now you have to try adding these lines in .htaccess :
first :
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
then if above not works
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$1
I have added few custom fields in the profile as you can find in the following screenshot:
https://ibb.co/XYKJFRQ
Here I have created department and job type in the profile field. How can I get and update these fields through API?
Well you have to make these as a buddypress profile field from wp-admin -> users -> profile fields , then you can use this api hit to fetch all the user fields :
http://localhost/wordpress-5.1.1/wp-json/wplms/v1/user/profile/dashboard :
This reply has been marked as private.
Please refer : https://prnt.sc/1saq4ue
check if that user is subscribed to the course and has access to that course or not .
Please refer : https://prnt.sc/1saq4ue
check if that user is subscribed to the course and has access to that course or not .