Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename project to node-gdata and add an example of new API.

  • Loading branch information...
commit 0dbcdea769738f6fcdb97e2718302d58205c80a8 1 parent 275dedd
@ammmir authored
Showing with 20 additions and 4 deletions.
  1. +20 −4 README.md
  2. 0  lib/{list.js → feed.js}
View
24 README.md
@@ -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());
+ });
+ });
View
0  lib/list.js → lib/feed.js
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.