src/ApiConnector.php
protected function createRequest(string $method, UriInterface $uri): RequestInterface
    {
        $request = $this->requestFactory->createRequest($method, $uri);

        return $request->withHeader('Authorization', $this->createAuthorizationHeader());
    }
protected function createRequest(string $method, UriInterface $uri): RequestInterface
    {
        $request = $this->requestFactory->createRequest($method, $uri);

        return $request->withHeader('Authorization', $this->createAuthorizationHeader());
    }
protected function createRequest ( string $ method , UriInterface $ uri ) : RequestInterface { $ request = $ this -> requestFactory -> createRequest ( $ method , $ uri ) ; return $ request -> withHeader ( 'Authorization' , $ this -> createAuthorizationHeader ( ) ) ; }
Create a Request object for the given URI

This method will also set the Authorization header for the request

@param string       $method
@param UriInterface $uri

@return RequestInterface
Create a Request object for the given URI