src/Model/Integration.php
public function triggerHook()
    {
        $hookUrl = $this->getLink('#hook');
        $options = [];

        // The API needs us to send an empty JSON object.
        $options['json'] = new \stdClass();

        // Switch off authentication for this request (none is required).
        $options['auth'] = null;

        $this->sendRequest($hookUrl, 'post', $options);
    }
public function triggerHook()
    {
        $hookUrl = $this->getLink('#hook');
        $options = [];

        // The API needs us to send an empty JSON object.
        $options['json'] = new \stdClass();

        // Switch off authentication for this request (none is required).
        $options['auth'] = null;

        $this->sendRequest($hookUrl, 'post', $options);
    }
public function triggerHook ( ) { $ hookUrl = $ this -> getLink ( '#hook' ) ; $ options = [ ] ; // The API needs us to send an empty JSON object. $ options [ 'json' ] = new \ stdClass ( ) ; // Switch off authentication for this request (none is required). $ options [ 'auth' ] = null ; $ this -> sendRequest ( $ hookUrl , 'post' , $ options ) ; }
Trigger the integration's web hook.

Normally the external service should do this in response to events, but
it may be useful to trigger the hook manually in certain cases.
Trigger the integration s web hook .