Home › Forums › Legacy Support › Support queries › Other issues › REST API
Tagged: rest api
- This topic has 6 replies, 3 voices, and was last updated 5 years, 6 months ago by Mk.
Viewing 7 posts - 1 through 7 (of 7 total)
-
AuthorPosts
-
May 31, 2019 at 6:35 am #211620ramprasadvSpectatorI tried the following rest API call but it is not returning valid data. http://uzs.3b6.myftpupload.com/wp-json/wplms/v1/track/12 The documentation says above URL will return user specific data but I am getting all the data like courses, units, and posts and most of them do not belong to that user. Let me know if something is wrong from your side or am I doing it wrong.May 31, 2019 at 6:39 am #211621ramprasadvSpectatorThis reply has been marked as private.June 1, 2019 at 7:50 am #211802Anshuman SahuKeymasterWell this "track" api endpoint returns the ids of those things which were updated since last api call. We use this clear out the caches in our wplms app of these ids. This is global track and there is another user specific track which we use to clear out cache of user specific data . What exactly you want to do with this ?June 3, 2019 at 9:47 am #211963ramprasadvSpectatorI want to fetch timestamp of the user subscribed courses but I am getting all the courses using below API request. http://uzs.3b6.myftpupload.com/wp-json/wplms/v1/track/12 I think this API is not working as intended.June 3, 2019 at 11:25 am #211994MkModeratorPlease check this tip: https://wplms.io/support/knowledge-base/wplms-api-endpoints/
currently no api available for subscription time stamp. I have a question why you want to fetch user subscription timestamp?June 3, 2019 at 12:41 pm #212010ramprasadvSpectatorI am building an Android App for my WPLMS to provide offline Video streaming. I am giving read-only access from Android App so the user needs to visit WPLMS website to subscribe any courses now I want to fetch that data in background using REST API so the user does not need to refresh content manually in android app. I checked your documentation where you mentioned to fetch timestamp of latest changes we can user web or user specific REST API. http://uzs.3b6.myftpupload.com/wp-json/wplms/v1/track Above gives timestamp of all changes But I am only concerned with user specific changes like "Updated to Subscribed course" You mentioned in the documentation that http://uzs.3b6.myftpupload.com/wp-json/wplms/v1/track/12 In above URL 12 signified user ID in WPLMS, Documentation says I will receive user-specific data i.e (Timestamp of User subscribed courses) but I am getting all the data i.e there is no difference(in terms of response) in the following URL http://uzs.3b6.myftpupload.com/wp-json/wplms/v1/track/12 http://uzs.3b6.myftpupload.com/wp-json/wplms/v1/trackJune 4, 2019 at 10:30 am #212168MkModeratoryou can check herehttp://uzs.3b6.myftpupload.com/wp-json/wplms/v1/track/12
it returns all related data of user id 12 Refer : http://prntscr.com/nxeq1p -
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)
- The topic ‘REST API’ is closed to new replies.