 
   _onMeError: () =>
     @error "Unable to fetch user info from Readmill"
+
+  _onBookSuccess: (book) =>
+    jQuery.extend @book, book
+
+  _onBookError: =>
+    @error "Unable to fetch book info from Readmill"
 
   _onCreateReadingSuccess: (body, status, jqXHR) =>
     {location} = JSON.parse jqXHR.responseText

      obj[decode(key)] = decode value
    obj

class Client
  @API_ENDPOINT: "https://api.readmill.com"


jQuery = Annotator.$

class Readmill extends Annotator.Plugin
  @API_ENDPOINT: "http://localhost:8000"

