Skip to content

NodeJS Integration Library and reference implementation for the CloudSponge Contacts Importer service.

Notifications You must be signed in to change notification settings

cloudsponge/cloudsponge-lib-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloudsponge-lib-node

cloudsponge-lib-node

Attention: This is a work in progress.

AUTHENTICATION values and mail source (ie. 'gmail') are now hardcoded. You will need to put your correct values on lib/emit_importer.js

var cloudsponge    = require('./cloudsponge');
var AUTHENTICATION = {domain_key: 'YRMBHYC3DRPEK3LUSCYK', domain_password: 'zgIER11nFCWMAGM'};
var importer       = cloudsponge.Importer;

importer.import("gmail", AUTHENTICATION);
importer.on('Initialized', function(consent){
  console.log('open browser at:', consent.url);
  importer.consent.getEvents(consent.import_id, function(contacts){
    console.log("rtn:::", contacts);
  });
});

About

NodeJS Integration Library and reference implementation for the CloudSponge Contacts Importer service.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •