Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Currently reading on goodreads

View goodreads.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
require 'faraday_middleware'
 
conn = Faraday.new(:url => 'http://www.goodreads.com') do |builder|
builder.use Faraday::Response::Mashify
builder.use Faraday::Response::ParseXml
builder.adapter Faraday.default_adapter
end
 
good_reads_key = 'your_key'
 
resp = conn.get "user/show/4714701.xml?key=#{good_reads_key}"
 
u = resp.body
 
currently_reading = u['GoodreadsResponse'].user.user_statuses.user_status.book
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.