2 Replies Latest reply on Feb 18, 2015 10:46 AM by yuval.z

    Jive REST API through osapi.jive.core

    butch

      Just a tip for anyone who wants to continue to use the REST API directly while within the context of an application.

       

      PUT

      /people/@me/@following/JIVE_USER_ID

       

      Can be sent via osapi.jive.core

       

      osapi.jive.core.put({

        "groupId" : "@self",

        "href": "/people/@me/@following/JIVE_USER_ID",

        "userId": "@viewer",

        "v": "v3"

      }).execute(

           function(response) {

           }

      );

       

      This holds true for GET/PUT/DELETE requests as well (obviously using osapi.jive.core.get/put/delete)

       

      Additional post body data can be sent via the body key.

       

      E.g.

       

      osapi.jive.core.post({

        "groupId" : "@self",

        "href": "..."

        "userId": "@viewer",

        "v": "v3",

        "body": "{...}"

      }).execute(

           function(response) {

           }

      );