-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename project to node-gdata and add an example of new API.
- Loading branch information
Showing
2 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.