Home › Forums › Legacy Support › Support queries › Update Issues › Dripfeed API
Tagged: dripfeed api
- This topic has 5 replies, 2 voices, and was last updated 3 years, 11 months ago by Anshuman Sahu.
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
January 20, 2021 at 2:19 pm #335288hilmanfSpectatori’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?January 21, 2021 at 2:00 pm #335570Anshuman SahuKeymasterHere 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)){
January 22, 2021 at 2:25 am #335657hilmanfSpectatorWhere should I put this code, is it in functions.php / customizer? because I'm looking for dripfeed status on the APIJanuary 22, 2021 at 2:15 pm #335806Anshuman SahuKeymasterIn which api call do you want this ? In the coursestatus api call or in coursestatusitem ?January 25, 2021 at 2:29 am #336143hilmanfSpectatorI’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?January 25, 2021 at 3:15 pm #336337Anshuman SahuKeymasterWell 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 -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
- The topic ‘Dripfeed API’ is closed to new replies.