Node.js wrapper for the Google Contacts API.
npm install google-contacts-api
var GoogleContacts = require('google-contacts-api');
var contacts = new GoogleContacts({ token : req.token });
contacts.getContacts(function(err, contacts) {
// ...
});
var GoogleContacts = require('google-contacts-api');
var contacts = new GoogleContacts();
contacts.refreshAccessToken(req.refreshToken , function(err, function(err,newToken)) {
// ...
});
To test this module, $GOOGLE_API_TOKEN
must be set.
$ export GOOGLE_API_TOKEN="ya29.WDVMYoReyJOKac3AFWMDg6lfMv8jyilWpjtQBqL99IKuiWTInpEqZFDi"
$ npm test