public function shopWebhooks()
    {
        if (!$this->shopWebhooks) {
            $this->shopWebhooks = $this->api->rest(
                'GET',
                '/admin/webhooks.json',
                [
                    'limit'  => 250,
                    'fields' => 'id,address',
                ]
            )->body->webhooks;
        }

        return $this->shopWebhooks;
    }
public function shopWebhooks()
    {
        if (!$this->shopWebhooks) {
            $this->shopWebhooks = $this->api->rest(
                'GET',
                '/admin/webhooks.json',
                [
                    'limit'  => 250,
                    'fields' => 'id,address',
                ]
            )->body->webhooks;
        }

        return $this->shopWebhooks;
    }
public function shopWebhooks ( ) { if ( ! $ this -> shopWebhooks ) { $ this -> shopWebhooks = $ this -> api -> rest ( 'GET' , '/admin/webhooks.json' , [ 'limit' => 250 , 'fields' => 'id,address' , ] ) -> body -> webhooks ; } return $ this -> shopWebhooks ; }
Gets the webhooks present in the shop.

@return array
Gets the webhooks present in the shop .