public function update(Webhook $webhook)
    {
        $data = $webhook->exportData();
        $response = $this->request(
            '/admin/webhooks/'.$webhook->id.'.json', 'PUT', array(
            'webhook' => $data
            )
        );
        $webhook->setData($response['webhook']);
    }
public function update(Webhook $webhook)
    {
        $data = $webhook->exportData();
        $response = $this->request(
            '/admin/webhooks/'.$webhook->id.'.json', 'PUT', array(
            'webhook' => $data
            )
        );
        $webhook->setData($response['webhook']);
    }
public function update ( Webhook $ webhook ) { $ data = $ webhook -> exportData ( ) ; $ response = $ this -> request ( '/admin/webhooks/' . $ webhook -> id . '.json' , 'PUT' , array ( 'webhook' => $ data ) ) ; $ webhook -> setData ( $ response [ 'webhook' ] ) ; }
Modify an existing webhook

@link   https://help.shopify.com/api/reference/webhook#update
@param  Webhook $webhook
@return void
Modify an existing webhook