Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

stephenlacy/google-contacts-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-contacts-oauth NPM version Build Status

Get contacts from Google with OAuth tokens

Install

$ npm install google-contacts-oauth

Usage

var googleContacts = require('google-contacts-oauth');

var opts = {
  token: 'google oauth token'
};
googleContacts(opts, function(err, data){
  console.log(data);
});
//=>[{email: 'me@slacy.me', name: 'Steve Lacy'}, ... ]

Options

token

OAuth token received from Google's OAuth API.

  type: 'String'
  default: null
  required: true

max-results:

Max results returned

  type: 'String'
  default: '500'

Lower level API

type

  type: 'String'
  default: 'contacts'

projection

  type: 'String'
  default: 'full'

LICENSE

(MIT License)

Copyright (c) 2015 Steve Lacy me@slacy.me slacy.me