Skip to content

Commit

Permalink
Rename project to node-gdata and add an example of new API.
Browse files Browse the repository at this point in the history
  • Loading branch information
ammmir committed Feb 15, 2011
1 parent 275dedd commit 0dbcdea
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
node-gdocs
node-gdata
==========

As the name implies, this is a Google Documents List API client for
node.js. Only the latest release (version 3) of the GData protocol
supported.
A Google Data API client for node.js. Only the latest release (version 3)
of the GData protocol supported.

Requirements
------------

* [node-oauth](https://github.com/ciaranj/node-oauth)

Example (Picasa Web Albums)
---------------------------

var GDClient = require('node-gdata').GDClient;
var PICASA_ALBUMS_URL = 'https://picasaweb.google.com/data/feed/api/user/default';

var google = new GDClient('consumer key', 'consumer secret');

// call getAccessToken() to obtain, or setAccessToken() if you have one
google.setAccessToken('token', 'token secret');

google.get(PICASA_ALBUMS_URL, function(err, feed) {
feed.getEntries().forEach(function(entry) {
console.log('album: ' + entry.getTitle());
});
});
File renamed without changes.

0 comments on commit 0dbcdea

Please sign in to comment.