def user_hash(access_token)
authenticated_user = Nokogiri::XML::Document.parse(@access_token.get('/api/auth_user').body)
id = authenticated_user.xpath('GoodreadsResponse/user').attribute('id').value.to_i
response_doc = Nokogiri::XML::Document.parse(open("http://www.goodreads.com/user/show/#{id}.xml?key=#{@consumer_key}").read)
user = response_doc.xpath('GoodreadsResponse/user')
hash = {
'id' => id,
'name' => user.xpath('name').text,
'user_name' => user.xpath('user_name').text,
'image_url' => user.xpath('image_url').text,
'about' => user.xpath('about').text,
'location' => user.xpath('location').text,
'website' => user.xpath('website').text,
}
end