public function request(string $verb, string $route, $body = [], $headers = []): Collection
    {
        $request = $this->createRequest($verb, $route, $body, $headers);

        $request = $this->authenticateRequest($request);

        $collection = $this->dispatchRequest($request);

        return $collection;
    }
public function request(string $verb, string $route, $body = [], $headers = []): Collection
    {
        $request = $this->createRequest($verb, $route, $body, $headers);

        $request = $this->authenticateRequest($request);

        $collection = $this->dispatchRequest($request);

        return $collection;
    }
public function request ( string $ verb , string $ route , $ body = [ ] , $ headers = [ ] ) : Collection { $ request = $ this -> createRequest ( $ verb , $ route , $ body , $ headers ) ; $ request = $ this -> authenticateRequest ( $ request ) ; $ collection = $ this -> dispatchRequest ( $ request ) ; return $ collection ; }
Makes a http request

@param string $verb
@param string $route
@param array $body
@param array $headers
@return Collection
@throws GuzzleException
Makes a http request