2.0.7 • Published 6 years ago
@dashlane/mirror-email-analysis v2.0.7
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 withprocess.env.LEARNING_DEBUG
inbox
andmimelib
, having been modified directly in the node_modules in washlane, are here added invendor
dlog
doesn't do much for now
2.0.7
6 years ago