Okay
  Public Ticket #3556571
API
Closed

Comments

  •  1
    ClubLana-Antiage website started the conversation

    Hello!

    1. How to generate WPLMS API key? I tried to do as on your video guide but it is too old and I cannot find API section in settings.

    2. Where could I read full API documentation?

    3. How to +N days to the enrolled user? For example, my user purchased by woocommerce and have 30 days of access. I need to add more 15 days = 45 days. How to do it with API?

    4. How to remove students from course with API?

    Thank you!

  • [deleted] replied

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

    add this code in your wplms-customizer.php file in wplms customizer plugin : 

    add_filter('wplms_lms_settings_tabs',function($x){
    $x['api'] = __('API','wplms');
    return $x;
    });
  •  1
    ClubLana-Antiage website replied

    How to allow WPLMS API for specific IP only?

    I see /wp-json/wplms/v1/ is allowed for PUBLIC. It is not good.


    Also, how to change /wp-json to another private path to protect it?

  • [deleted] replied

    Hi im sorry currently this is not available.

    Only public api calls can be called without any verification while all the user related api's requires user tokens .