dimmduh/Google-Reader-API-PHP-class — Issue #2: How to use your API
Author: jimgym1989
Created: 2012-01-06 08:09:31+00:00
State: open

First of all, I would like to honor you for creating a wonderful API for Google Reader.

I have a question. Do you have any documentation on how to use your API?

what I did was just this code:

require_once "google-reader-api.php";

$read = new GoogleReaderAPI("my_email@gmail.com","my-gmail-password");

echo "

";
print_r( $read->get_content_feed( "http://www.dust-off.com/feed" ) );
echo "

";

After running this one, I'm getting this error:

Fatal error: Uncaught exception 'AutentificationException' with message 'Auth error: server response 400' in C:\wamp\www\googlereader\reader\www\google-reader-api.php:94
Stack trace:
#0 C:\wamp\www\googlereader\reader\www\google-reader-api.php(162): GoogleReaderAPI->request2google('stream/contents...', 'get', false, Array)
#1 C:\wamp\www\googlereader\reader\www\google-reader-api.php(166): GoogleReaderAPI->get_content('http://www.dust...', 20, 'n', '', '', '')
#2 C:\wamp\www\googlereader\reader\www\index.php(7): GoogleReaderAPI->get_content_feed('http://www.dust...')
#3 {main}
thrown in C:\wamp\www\googlereader\reader\www\google-reader-api.php on line 94

Can you guide me on this, please. If only you could show me a documentation of your wonderful API, then that would be a life save and very much appreciated!

Thanks! Hoping for your response! :-)