public function get($webhookId, array $fields = array())
    {
        $params = array();
        if (!empty($fields)) {
            $params['fields'] = implode(',', $fields);
        }
        $response = $this->request('/admin/webhooks/'.$webhookId.'.json', 'GET', $params);
        return $this->createObject(Webhook::class, $response['webhook']);
    }
public function get($webhookId, array $fields = array())
    {
        $params = array();
        if (!empty($fields)) {
            $params['fields'] = implode(',', $fields);
        }
        $response = $this->request('/admin/webhooks/'.$webhookId.'.json', 'GET', $params);
        return $this->createObject(Webhook::class, $response['webhook']);
    }
public function get ( $ webhookId , array $ fields = array ( ) ) { $ params = array ( ) ; if ( ! empty ( $ fields ) ) { $ params [ 'fields' ] = implode ( ',' , $ fields ) ; } $ response = $ this -> request ( '/admin/webhooks/' . $ webhookId . '.json' , 'GET' , $ params ) ; return $ this -> createObject ( Webhook :: class , $ response [ 'webhook' ] ) ; }
Receive a single webhook

@link   https://help.shopify.com/api/reference/webhook#show
@param  integer $webhookId
@param  array   $fields
@return Webhook
Receive a single webhook