public function update($params = null, $apiKey = null)
    {
        if (!isset($params['webhook']) || !is_array($params['webhook'])) {
            $clone = $params;
            unset($params);
            $params['webhook'] = $clone;
        }

        return self::_update(get_class(), $params);
    }
public function update($params = null, $apiKey = null)
    {
        if (!isset($params['webhook']) || !is_array($params['webhook'])) {
            $clone = $params;
            unset($params);
            $params['webhook'] = $clone;
        }

        return self::_update(get_class(), $params);
    }
public function update ( $ params = null , $ apiKey = null ) { if ( ! isset ( $ params [ 'webhook' ] ) || ! is_array ( $ params [ 'webhook' ] ) ) { $ clone = $ params ; unset ( $ params ) ; $ params [ 'webhook' ] = $ clone ; } return self :: _update ( get_class ( ) , $ params ) ; }
update a webhook

@param mixed  $params
@param string $apiKey
@return $this
update a webhook