Skip to content

flyeven/gcontacts-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gContacts API

Google Contacts API client for Node.js.

Build Status

Quick start

var GoogleContacts = require('gcontacts-api');

var gContacts = new GoogleContacts({
  clientId: '####-####.apps.googleusercontent.com',
  clientSecret: '###-###',
  redirectUrl: 'http://www.mywebsite.com/oauth2callback'
});

var url = gContacts.getAuthUrl();

// redirect user to authorization URL and acquire oAuth access token

gContacts.authorize(token)
  .then(function () {
    return gContacts.getContacts();
  })
  .then(function (contacts) {
    // do something with contacts
  })
  .catch(function (err) {
    console.error(err);
  });

For further information on how to use this library please refer to the wiki.

Features

  • OAuth authorization;
  • Basic CRUD functionality;
  • Promise and callback API.

Installation

$ npm install gcontacts-api

Requirements

  • Node.js 0.8+*

Contribute

Source code contributions are most welcome. The following rules apply:

  1. JavaScript source code needs to follow the Airbnb Style Guide;
  2. Functions need to be well documented;
  3. Unit tests are obligatory.

Support

If you are having issues with this library, please let us know.

License

The project is licensed under the MIT license.

About

Google Contacts API client for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published