8000 GitHub - jebu/Google-Contacts: Node.js wrapper for the Google Contacts API (uses OAuth 2.0 token authentication)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

jebu/Google-Contacts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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
0