API Endpoints

Home Forums Legacy Support Support queries Other issues API Endpoints

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #369679
    impacttogether
    Participant
    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.
    #369945
    Anshuman Sahu
    Keymaster
    Hi this is our old api for profile for V3 : https://documenter.getpostman.com/view/3430105/S1TYTvP9
    #369962
    impacttogether
    Participant
    This reply has been marked as private.
    #370041
    Anshuman Sahu
    Keymaster
    Ok your data and api url is correct , please goto wp-admin -> lms -> settings -> api -> enable these : https://prnt.sc/1r7ogbk
    #370060
    impacttogether
    Participant
    This reply has been marked as private.
    #370130
    Anshuman Sahu
    Keymaster
    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 .
    #370153
    impacttogether
    Participant
    This reply has been marked as private.
    #370265
    Anshuman Sahu
    Keymaster
    This reply has been marked as private.
    #370438
    impacttogether
    Participant
    This reply has been marked as private.
    #370686
    Anshuman Sahu
    Keymaster
    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
    #370689
    impacttogether
    Participant
    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?
    #370763
    Anshuman Sahu
    Keymaster
    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 :
    #370813
    impacttogether
    Participant
    This reply has been marked as private.
    #370844
    Anshuman Sahu
    Keymaster
    Please refer : https://prnt.sc/1saq4ue check if that user is subscribed to the course and has access to that course or not .
    #370845
    Anshuman Sahu
    Keymaster
    Please refer : https://prnt.sc/1saq4ue check if that user is subscribed to the course and has access to that course or not .
Viewing 15 posts - 1 through 15 (of 17 total)
  • The topic ‘API Endpoints’ is closed to new replies.