Skip to content

Instantly share code, notes, and snippets.

@ootput
Created April 6, 2010 08:08
Show Gist options
  • Save ootput/357342 to your computer and use it in GitHub Desktop.
Save ootput/357342 to your computer and use it in GitHub Desktop.
<?php
# The actual data
public function books($limit=10) {
$config = Config::current();
$xml = simplexml_load_string(get_remote('http://readernaut.com/api/v1/xml/'.$config->readernaut_user.'/books/reading/?limit='.$limit));
return $xml->reader_book;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment