src/Context/ApiContext.php
protected function setRequestPath($path) {
        // Resolve the path with the base_uri set in the client
        $uri = Psr7\Uri::resolve($this->client->getConfig('base_uri'), Psr7\uri_for($path));
        $this->request = $this->request->withUri($uri);

        return $this;
    }
protected function setRequestPath($path) {
        // Resolve the path with the base_uri set in the client
        $uri = Psr7\Uri::resolve($this->client->getConfig('base_uri'), Psr7\uri_for($path));
        $this->request = $this->request->withUri($uri);

        return $this;
    }
protected function setRequestPath ( $ path ) { // Resolve the path with the base_uri set in the client $ uri = Psr7 \ Uri :: resolve ( $ this -> client -> getConfig ( 'base_uri' ) , Psr7 \ uri_for ( $ path ) ) ; $ this -> request = $ this -> request -> withUri ( $ uri ) ; return $ this ; }
Update the path of the request

@param string $path The path to request
@return self
Update the path of the request