1 Reply Latest reply on Aug 16, 2017 12:08 PM by blake.scott

    Get people by person service vs direct call from app

    polkapo

      Hi all,

       

      what is the difference between get all people with some expertise with this code:

      osapi.jive.core.get({

      v : "v3",

      href : '/people?filter=tag(' + expert + ')',

      }).execute(function(response) {...});

       

      vs with this code:

      osapi.jive.core.get({

      v : "v3",

      href : '/people/expertise/' + expert ,

      }).execute(function(response) {...});

       

      Issue is when I add to e.g. myself an expertise, and after that in my app I am trying to get all people with that expertise.

       

      If I use first approach I will see fetched people (myself) after a while (maybe 5 - 10 secs) but if I use second approach I can find myself instantly.

       

      Thanks.