0.0.11 • Published 9 years ago

rednet-google-contacts v0.0.11

Weekly downloads
14
License
MIT
Repository
github
Last release
9 years ago

Node.js wrapper for the Google Contacts API.

Install

npm install rednet-google-contacts

Usage

var GoogleContacts = require('googlecontacts').GoogleContacts;
var c = new GoogleContacts({
  token: 'oauth2 token...'
});
c.on('error', function (e) {
  console.log('error', e);
});
c.on('contactsReceived', function (contacts) {
  console.log('contacts: ' + contacts);
});
c.on('contactGroupsReceived', function (contactGroups) {
  console.log('groups: ' + contactGroups);
});
c.getContacts('thin', 100);
c.getContactGroups('thin', 200);

getContacts and getContactGroups has two optional parameter: projection and limit http://code.google.com/apis/contacts/docs/3.0/reference.html#Projections limit max how many elements do you wan't to receive

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago