4 Replies Latest reply on Apr 14, 2014 11:31 AM by pcrownov

    REST Webhook API not returning "jive:user_profile_modified" for "user_account" hooked event

    pcrownov

      Hi,

        I hooked into the REST API to listen for the user_account events specifically watching to see if I could capture the jive:user_profile_modified verb. I was able to successfully hook, and could see events for jive:user_account_created, jive:user_account_deleted and jive:user_account_disabled (i didn't test for others), but when I tried to modify my profile(I tried all the fields in Edit Profile including photos), I never was able to see the jive:user_profile_modified verb return. I am curious if I am doing something wrong or misunderstanding when that specific verb is supposed to fire...

       

      function registerWebhook(bearerToken)

      {

           var options =

           {
              headers:

              {
                   Authorization: 'Bearer ' + bearerToken.access_token
              },
              body: JSON.stringify({
                         callback: 'http://127.0.0.1:1337',
                         events: 'user_account'
              })
          };
         
          request.post( 'http://127.0.0.1:8080/api/core/v3/webhooks', options, function ( error, response, body ) { console.log(body); } )
      }

       

       

      Any help is appreciated, thanks!