GithubHelp home page GithubHelp logo

martijnengler / goodreads-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jesuserro/goodreads-api

0.0 0.0 0.0 13 KB

A quick PHP wrapper class for the GoodReads API.

License: Other

PHP 100.00%

goodreads-api's Introduction

goodreads-api

A quick PHP wrapper class for the GoodReads API.

Disclaimer

This is something I hacked together quickly, it isn't beautiful, and can only access a few API endpoints. However it's a good starting point, and from a cursory glance implementing other methods wouldn't be particularly tricky. Caching support is also baked in.

Please also bear in mind the GoodReads API itself isn't great (some methods for example only support XML!), you can read/comment on that in their forums.

Requirements

  • PHP 5.3.x or higher
  • cURL
  • GoodReads API key

Available methods

Usage

  1. Include class
  2. Initialise wrapper $api = new GoodReads('PUT YOUR API KEY HERE', 'writable directory for caching');
  3. Call a method $data = $api->getLatestReads(4148474);

License

Simplified BSD (included).

Changes

2018-06-02 Tyler Paulson

  • Added function to get a user by username rather than ID.

2018-03-04 Tyler Paulson

  • Added function to get all of a user's books, read or otherwise.

2017-12-10 Daniel G Wood

  • Added 5 endpoints: author.books, book.show, book.show_by_isbn, book.title and review.show
  • Updated documentation.

2016-05-13 Victor Davis

  • Added LIBXML_NOCDATA arg to simplexml_load_string to capture CDATA in returned XML
  • Added 2 endpoints: author.show & user.show

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.