google-contacts-meteor

0.0.7 • Public • Published

Node.js wrapper for the Google Contacts API.

Install

npm install 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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.7
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.7
    1
  • 0.0.6
    1
  • 0.0.5
    1
  • 0.0.4
    1
  • 0.0.3
    1

Package Sidebar

Install

npm i google-contacts-meteor

Weekly Downloads

5

Version

0.0.7

License

MIT

Last publish

Collaborators

  • thepriyadarshy