Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple Google Data API client for OAuth 2.0
JavaScript
branch: master

This branch is 19 commits behind smurthas:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
node_modules/request
.gitignore
README.md
gdata.js
package.json
test.js

README.md

gdata-js

Simple Google Data API client for OAuth 2.0 with express + connect.

npm install gdata-js

Usage

gdata-js has two methods:

  • getAccessToken(req, res, callback): Goes through the OAuth 2.0 flow to get an access token
  • getFeed(http_method, path, params, callback): Does a call to the Google Data API to get a feed object.

oauth_token must be contained in the params argument as demonstrated in test.js

Test

Enter your consumer key and secret in test.js

cd test
node test.js

open http://localhost:8553

Something went wrong with that request. Please try again.