Skip to content

Node.js wrapper for the Google Contacts API (uses OAuth 2.0 token authentication)

License

Notifications You must be signed in to change notification settings

weisjohn/google-contacts-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js wrapper for the Google Contacts API.

install

npm install google-contacts-api

usage

var GoogleContacts = require('google-contacts-api');
var contacts = new GoogleContacts({ token : req.token });
contacts.getContacts(function(err, contacts) {
    // ...
});

Refresh Your Token

var GoogleContacts = require('google-contacts-api');
var contacts = new GoogleContacts();
contacts.refreshAccessToken(req.refreshToken , function(err, function(err,newToken)) {
    // ...
});

test

To test this module, $GOOGLE_API_TOKEN must be set.

$ export GOOGLE_API_TOKEN="ya29.WDVMYoReyJOKac3AFWMDg6lfMv8jyilWpjtQBqL99IKuiWTInpEqZFDi"
$ npm test

About

Node.js wrapper for the Google Contacts API (uses OAuth 2.0 token authentication)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%