0 Replies Latest reply on Sep 6, 2017 7:32 AM by simonwade

    Webhook not being called

    simonwade

      I’m trying to set up webhooks so that we’re notified when people interact with the system so that we can notify people using push notifications to a mobile app that we’re building.

      I’ve created the following webhooks:

      { itemsPerPage: 25,

        list:

         [ { id: '1016',

             resources:

              { self:

                 { allowed: [ 'PUT', 'DELETE', 'GET' ],

                   ref: 'https://sharegp.racgp.org.au/api/core/v3/webhooks/1016' } },

             object: 'https://sharegp.racgp.org.au/api/core/v3/people/2009',

             events: 'discussion (visibility:people)',

             callback: 'https://sharegp.jtribe.com.au/api/v1/webhooks',

             queueSize: 0 },

           { id: '1015',

             resources:

              { self:

                 { allowed: [ 'PUT', 'DELETE', 'GET' ],

                   ref: 'https://sharegp.racgp.org.au/api/core/v3/webhooks/1015' } },

             object: 'https://sharegp.racgp.org.au/api/core/v3/places/1021',

             events: '',

             callback: 'https://sharegp.jtribe.com.au/api/v1/webhooks',

             queueSize: 0 } ],

        startIndex: 0 }

      The objects in the webhooks are:

      The docs for the Webhook entity indicate that if event is “not specified, then all events for all content objects are broadcasted” but I don’t receive any calls.

      When I create a status update or a comment in this group I don’t receive any requests (GET or POST) to the webhook callback. I can see this activity when I look at https://sharegp.racgp.org.au/api/core/v3/places/1021/activities.