@dashlane/mirror-email-analysis
analyse emails for mirror
Last updated 2 years ago by highfivedenis .
WTFPL · Repository · Original npm · Tarball · package.json
$ cnpm install @dashlane/mirror-email-analysis 
SYNC missed versions from official npm registry.

Mirror Email Analysis

Usage

  • Only supports GMail
  • You must have an active Google app
  • You must provide an OAuth token

Example usage:

const EmailAnalysis = require('@dashlane/mirror-email-analysis')

const authParams = {
    email: 'jean@jacques.edu',
    googleClientID: 'dsgjKJSDKGJB124bnKHJBKHB12412',
    googleClientSecret: 'secret',
    refreshToken: '102894124kjbjkhv1j2hgvj1hv41j24',
    accessToken: '0848128041jnkgjsdg'
}

EmailAnalysis
    .extractAccounts(authParams)
    .then(accounts => {
        // do something with the accounts
    })

EmailAnalysis
    .getPasswordResetLink(domain, authParams)
    .then(resetLink => {

    })

If you're feeling dangerous, you can also use username/password authentication:

EmailAnalysis
    .extractAccounts({
        email: 'jean@jacques.edu',
        password: 'p@$$w0rD'
    })
    .then(accounts => ...)

Nota bene from port

  • config.isLearning replaced with process.env.LEARNING_DEBUG
  • inbox and mimelib, having been modified directly in the node_modules in washlane, are here added in vendor
  • dlog doesn't do much for now

Current Tags

  • 2.0.7                                ...           latest (2 years ago)

1 Versions

  • 2.0.7                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (10)
Dev Dependencies (15)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |