4 Replies Latest reply on Dec 6, 2018 10:22 AM by james1.hicks

    Way to increase content view through REST API in Jive Cloud?

    james1.hicks

      We are pulling videos from the REST API into a Custom Add On. Views don't register when doing this. Is there a way through API to increase  the viewCount associated with that video?

       

      Currently I have a function that posts to  the contents/contentID/read everytime a user goes to a specific 'video view', thinking that the 'read' is associated with upping the view count, but it doesn't look like it is.

       

      osapi.jive.core.post({
            v: "v3",
            href: "/contents/" + videoID + "/read",
            type: "application/json"
          }).execute(function(response){
            console.log(response)
          })

       

      I do get a 204, but it is not affecting the viewCount.

       

      Any help would be greatly appreciated.