google-contacts-oauth
Get contacts from Google with OAuth tokens
Last updated 4 years ago by stevelacy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install google-contacts-oauth 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.0                                ...           latest (4 years ago)

4 Versions

  • 0.2.0                                ...           4 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |