REST API

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #211620
    ramprasadv
    Spectator
    I 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.
    #211621
    ramprasadv
    Spectator
    This reply has been marked as private.
    #211802
    Anshuman Sahu
    Keymaster
    Well 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 ?
    #211963
    ramprasadv
    Spectator
    I 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.
    #211994
    Mk
    Moderator
    Please 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?
    #212010
    ramprasadv
    Spectator
    I 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/track
    #212168
    Mk
    Moderator
    you can check here
    http://uzs.3b6.myftpupload.com/wp-json/wplms/v1/track/12
    it returns all related data of user id 12 Refer : http://prntscr.com/nxeq1p
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘REST API’ is closed to new replies.