Sends a DELETE HTTP request.

@param string $account
@param string $action
@param null $parameters

@return bool|ContextIOResponse
496833
public function delete($account, $action = '', $parameters = null)
    {
        return $this->sendRequest('DELETE', $account, $action, $parameters);
    }
1064736
public function delete($account, $deleteType = Constants::FRIEND_DELETE_TYPE_BOTH)
    {
        $request = new DeleteFriendRequest($this->identifier, $account, $deleteType);
        $response = new DeleteFriendResponse();
        return $this->client->sendRequest($request, $response);
    }
829953
protected function deleteWithAction($id, $action, $actionArg = null, $object = null, $class = null)
    {
        return $this->requestAction(RequestOps::DELETE, $action, $id, $actionArg, $object, $class);
    }
799711
public function delete($params=null)
    {
        self::_validateCall('delete');
        $requestor = new ApiRequestor();
        $url = '/' . $this->getType() . '/' . $this->id;
        return $requestor->request('delete', $url, $params);
    }
470670
public function passesOrFail($action = null)
    {
        if(  !$this->passes($action) ){
            throw new ValidatorException( $this->errorsBag() );
        }

        return true;
    }
1363907
public function deleteAccount($kf_account)
    {
        $data = ['kf_account' => $kf_account];
        $url = "https://api.weixin.qq.com/customservice/kfaccount/del?access_token=ACCESS_TOKEN";
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->httpPostForJson($url, $data);
    }
258478
public function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
    {
        respondWith(response()->redirectToAction($action, $parameters, $status, $headers ));
    }
62647
public static function delete($token, array $params = array())
    {
        $params = array_merge($params, array('token_id' => $token));

        return self::invoke(__FUNCTION__, static::RESOURCE_NAME, $params);
    }
523823
public function delete($uri, $action)
    {
        $uri = $this->buildUri($uri);

        return $this->addResponseType(Route::delete($uri, $action));
    }
221536
protected function soapCall($action, $parameters = null)
    {
        // deep black magic
        $stfu = error_reporting();
        error_reporting(0);
        $response = $this->soap->$action($parameters);
        error_reporting($stfu);
        $response = \Metaclassing\Utility::encodeJson($response);
        $response = \Metaclassing\Utility::decodeJson($response);
        $this->log[] = [
                        'request' => [
                                    'action'     => $action,
                                    'parameters' => $parameters,
                                    //'xml' => \Metaclassing\Utility::xmlPrettyPrint($this->soap->__getLastRequest()),
                                    ],
                        'response' => [
                                    'response' => $response,
                                    //'xml' => \Metaclassing\Utility::xmlPrettyPrint( $this->soap->__getLastResponse() ),
                                    ],
                        ];

        return $response;
    }
1194156
protected function execute($action, array $parameters = [])
    {
        $parameters += $this->input;

        return $this->server->dispatch(
            new ServerRequest($action, $parameters)
        )->getData();
    }
485137
public JsonResponse apiDelete(ApiAction action, Map<String, Object> data) throws IOException {
        return httpRequestJson(action, HttpRequestMethod.DELETE, data);
    }
617420
public function sendRequest($action, $data = null, $method = RequestInterface::POST)
    {
        // don't throw exceptions for 4xx errors
        $this->httpClient->getEventDispatcher()->addListener(
            'request.error',
            function ($event) {
                if ($event['response']->isClientError()) {
                    $event->stopPropagation();
                }
            }
        );

        // Return the response we get back from Pin Payments
        return $this->httpClient->createRequest(
            $method,
            $this->getEndpoint() . $action,
            array('Authorization' => 'Basic ' . base64_encode($this->getSecretKey() . ':')),
            $data
        )->send();
    }
115562
public function execute($action, array $parameters = []) {
        $result = null;
        if (is_string($action)) {
            $actionParts = explode("@", $action);
            $controllerClass = $actionParts[0];
            $controllerMethodName = sizeof($actionParts) > 1 ? $actionParts[1] : "index";
            $controller = Controllers::get($controllerClass);
            if ($controller == null) {
                throw new ActionNotFoundException ( "Controller \"$controllerClass\" not found !!");
            }
            if (method_exists($controller, $controllerMethodName)) {
                $controllerMethodParams = $this->getParameterValues(new ReflectionMethod($controller, $controllerMethodName), $parameters);
                $result = call_user_func_array([$controller, $controllerMethodName], $controllerMethodParams);
            }
            else {
                throw new ActionNotFoundException ("Method \"$controllerMethodName\" not found in controller \"$controllerClass\" !!");
            }
        }
        else if (is_callable($action)) {
            $actionParams = $this->getParameterValues(new ReflectionFunction($action), $parameters);
            $result = call_user_func_array($action, $actionParams);
        }
        return $result;
    }
1370747
public function delete($account, $repo, $linkID)
    {
        return $this->requestDelete(
            sprintf('repositories/%s/%s/links/%d', $account, $repo, $linkID)
        );
    }
328192
protected function renderAction(array $parameters = [], Action $action = null)
    {
        $response = new Response();
        $response->setContent($this->getTemplate($action)->render($parameters));

        return $response;
    }
1126445
public function directCall($action, $params = array(), &$time = NULL) {
		$fn = strtolower($action->httpMethod());
		
// 		echo "execute {$action->httpMethod()} {$action->url()}\n<br>\n";
		
		$request = $this->getRequest($fn, $this->uri . $action->url());
		$res = array();
		
		if (array_key_exists('meta', $params)) {
			$s = $this->getSettings();
			$res[ $s['meta']->{'namespace'} ] = $params['meta'];
			unset($params['meta']);
		}
		
		$res[ $action->getNamespace('input') ] = $params;
		
		if(!$this->sendAsQueryParams($fn))
			$request->body(empty($params) ? '{}' : json_encode($res));
		
		$this->authProvider->authenticate($request);

		$start = microtime(true);
		$ret = $this->sendRequest($request, $action, $res);
		$diff = microtime(true) - $start;
		
		$this->accountTime($diff);
		
		if($time !== NULL)
			$time = $diff;
		
		return $ret;
	}