src/Wuunder/Api/Endpoints/Drafts.php
public function fire()
    {
        $draftRequest = new PostRequest($this->apiEnvironment->getStageBaseUrl() . "/drafts",
            $this->apiKey->getApiKey(), json_encode($this->config->getDrafts()));
        try {
            $draftRequest->send();
        } catch(Exception $e) {
            $this->logger->log($e);
        }

        $body = null;
        $header = null;
        $error = null;

        if (isset($draftRequest->getResponseHeaders()["http_code"])
            && strpos($draftRequest->getResponseHeaders()["http_code"], "200 OK") !== false
        ) {
            $header = $draftRequest->getResponseHeaders();
            $body = $draftRequest->getBody();
        } else {
            $error = $draftRequest->getResponse();
        }
        $this->draftsResponse = new DraftsApiResponse($header, $body, $error);

        return is_null($error);
    }
public function fire()
    {
        $draftRequest = new PostRequest($this->apiEnvironment->getStageBaseUrl() . "/drafts",
            $this->apiKey->getApiKey(), json_encode($this->config->getDrafts()));
        try {
            $draftRequest->send();
        } catch(Exception $e) {
            $this->logger->log($e);
        }

        $body = null;
        $header = null;
        $error = null;

        if (isset($draftRequest->getResponseHeaders()["http_code"])
            && strpos($draftRequest->getResponseHeaders()["http_code"], "200 OK") !== false
        ) {
            $header = $draftRequest->getResponseHeaders();
            $body = $draftRequest->getBody();
        } else {
            $error = $draftRequest->getResponse();
        }
        $this->draftsResponse = new DraftsApiResponse($header, $body, $error);

        return is_null($error);
    }
Fires the request and handles the result.

@return bool