0 Replies Latest reply on Feb 27, 2014 2:11 PM by cgum

    What's the best way to obtain current user details through Jive Connects API?

    cgum

      I am creating a Jive 7 cloud [internal] app that communicates with a custom REST API via the Jive Connects API.  The REST service will need to know the User ID of the app user in order to insure they are authorized to perform various actions.

       

      Presently, my solution is to pass the value from shindig.auth.getSecurityToken() to the REST API and then to call:

      https://mysite.jiveon.com/social/rpc?method=people.get&groupId=@self&id=@self&fields=id,name&st=<shindigSecurityToken>

       

      This returns a block of JSON with the userId, email, etc.

       

      This works, but I'm wondering if there is a "prescribed" way to do this sort of thing.

       

      Thanks!