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);
    }