protected function prepare($method, $resource, $body, $params)
    {
        // Append the username parameter to the end of every resource URI.
        $resource = trim($resource, '/').'/'.$this->username;

        foreach ($params as $param) {
            $resource .= '/'.$param;
        }

        return new Request($method, $resource, [], $body);
    }
protected function prepare($method, $resource, $body, $params)
    {
        // Append the username parameter to the end of every resource URI.
        $resource = trim($resource, '/').'/'.$this->username;

        foreach ($params as $param) {
            $resource .= '/'.$param;
        }

        return new Request($method, $resource, [], $body);
    }
protected function prepare ( $ method , $ resource , $ body , $ params ) { // Append the username parameter to the end of every resource URI. $ resource = trim ( $ resource , '/' ) . '/' . $ this -> username ; foreach ( $ params as $ param ) { $ resource .= '/' . $ param ; } return new Request ( $ method , $ resource , [ ] , $ body ) ; }
Prepare a request for sending.

@param  string $method
@param  string $resource
@param  string $body
@return \GuzzleHttp\Psr7\Request
Prepare a request for sending .