2 Replies Latest reply on Oct 19, 2012 11:07 AM by sven.vetter

    JavaScript API 3.0 -> get current version




      I think it is a very easy question - but I cannot find a solution.

      I'd like to receive in a 6.0 app information about the connected user.


      This works:

      var request = osapi.jive.corev3.people.get({
        username: 'admin'


      But how I can use the username for the current user (instead of 'admin')?

      @viewer doesn't work with the 3.0 api.


      I tried this one:

      var request = osapi.jive.corev3.people.getViewer();


      But I receive an error:

      [10:39:18.553] uncaught exception: Could not find a suitable signature for the passed arguments: