10 Replies Latest reply on Jul 21, 2017 2:07 AM by jgoldhammer

    Post a like with javascript API

    romainpaillas

      Hello,

       

      I often use javascript API to get information from users, places or contents.

       

      The structure I use look likes

       

      osapi.jive.core.get({

        v:"v3",

        href:"/contents/1234

      }).execute(function(response) {

        // All actions I want to do with the answer

      });

       

      I try to post a like on a content with this structure

       

      osapi.jive.core.post({

        v:"v3",

        href:"/contents/1234/likes

      }).execute(function(response) {

        // All actions I want to do with the answer

      });

      This code return me a 204, so normally "Request was successful"... But the like isn't registred.

       

      Any idea ?