Dripfeed API

Home Forums Legacy Support Support queries Update Issues Dripfeed API

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #335288
    hilmanf
    Spectator
    i’m trying to find dripfeed indicator, whether the dripfeed’s setting is on or not, inside course API but seem can’t find any. can you help me find me where to look thr dripfeed indicator inside course API? or i’m looking at the wrong API?
    #335570
    Anshuman Sahu
    Keymaster
    Here is the you can check unit_traverse function in vibe course module .
    $drip_enable= apply_filters('wplms_course_drip_switch',get_post_meta($course_id,'vibe_course_drip',true),$course_id);
    
                if(vibe_validate($drip_enable)){
    #335657
    hilmanf
    Spectator
    Where should I put this code, is it in functions.php / customizer? because I'm looking for dripfeed status on the API
    #335806
    Anshuman Sahu
    Keymaster
    In which api call do you want this ? In the coursestatus api call or in coursestatusitem ?
    #336143
    hilmanf
    Spectator
    I’m sorry It seems like we aren’t on the same page here. So let me explain my problem first. i’m building my own mobile app for my students. And my problem is when the dripfeed is turned on in some courses my student cant skip units even tho they already finished the unit before. When they went to skip the unit and go to the newest unit, all it shows on the unit’s content is “Unit cannot be accesed” or “this unit will be available in 5 min” or something like that. So to prevent that from happening again. I’m gonna make my own dripfeed function on my mobile app based on dripfeed parameter in the API call but I cant find it at the API call (coursestatus). So my problem are: so first,I’m looking for dripfeed parameter on the coursestatus API (whether the dripfeed is on or of). Second, I’m looking for the dripfeed parameter on (or whatever it is) the coursestatus/item (that indicates whether is user already finish the unit or not). Third, if the dripfeed parameter isn’t available in any API, can you make it available?
    #336337
    Anshuman Sahu
    Keymaster
    Well this drip info is not sent in the api calls .It is handled by php . This is the whole course status call which fetched course units : http://localhost/vibebp/wp-json/wplms/v2/user/coursestatus/79 and this is call for individual unit : http://localhost/vibebp/wp-json/wplms/v2/user/coursestatus/79/item/266 now this unit call content gets set to "unit is not available" from php itself , as there are many checks has to be done for various drip feed types we checked this in php itself . http://localhost/vibebp/wp-json/wplms/v2/user/coursestatus/79/item/266 this call for the unit can give you time of access if user does not have access of it
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Dripfeed API’ is closed to new replies.