Skip to content

v0.0.8

Compare
Choose a tag to compare
@speric speric released this 09 Mar 20:56
· 23 commits to master since this release

Last pre-1.0.0 release. Works on older Rubies.

Install
gem install kindle-highlights -v=0.0.8
Use
require 'kindle_highlights'

# Pass in the email address & password you use to sign into your Amazon Kindle account
kindle = KindleHighlights::Client.new("email.address@gmail.com", "password")

# Get a list of all your Kindle books
kindle.books
#=>
{
  "B002JCSCO8" => "The Art of the Commonplace: The Agrarian Essays of Wendell Berry",
  "B0049SPHC0" => "Calvinistic Concept of Culture, The",
  "B00E25KVLW" => "Ruby on Rails 4.0 Guide",
  "B004X5RLBY" => "The Seven Lamps of Architecture",
  "B0026772N8" => "Zen and the Art of Motorcycle Maintenance"
}

# Get your highlights for a specific book by passing in the ASIN
kindle.highlights_for("B005CQ2ZE6")
#=>
[
  {
    "asin"          => "B005CQ2ZE6",
    "customerId"    => "...",
    "embeddedId"    => "From_the_Garden_to_the_City:420E805A",
    "endLocation"   => 29591,
    "highlight"     => "One of the most dangerous things you can believe in this world is that technology is neutral.",
    "howLongAgo"    => "1 year ago",
    "startLocation" => 29496,
    "timestamp"     => 1320901233000
  }
]