Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

venn-messaging

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

venn-messaging

Venn Messaging Redundancy Package, including Push Notifications, Email and SMS

  • 0.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-94.74%
Maintainers
1
Weekly downloads
 
Created
Source

Venn Email

Codeship Status for VennHQ/venn-email-node

Build in a redundant messaging service seamlessly. If your email, sms or push notification provider goes down, we'll fall back to a secondary service.

Use

Install

npm install venn-messaging

Functions

initialize(api_key, callback)
paramstypedescriptionexample
api_keyStringVenn API Key64d2fa24h3f6f7cc61asp3e8
Email Send
send(data, callback)
paramstypedescriptionexample
data.fromStringfrom email addressfrom@email.com
data.toStringto email addressto@email.com
data.subjectStringemail subjectSubject 123
data.messageStringemail messageHow you doin?
SMS Send
send(data, callback)
paramstypedescriptionexample
data.fromStringfrom phone number+14354402246
data.toStringto phone number+1633050227
data.messageStringtext messageHow you doin?

Email Example

vennEmail = require("venn-messaging").Email;

// initialize and send an email
vennEmail.initialize(VENN_API_KEY)
var data = {
	from: "from@email.com",
	to: "to@email.com",
	subject: "Subject 123",
	message: "How you doin"
}
vennEmail.send(data, function(err, result){
	// email successfully sent if !err
})

SMS Example

vennSms = require("venn-messaging").SMS;

// initialize and send an SMS
vennSms.initialize(VENN_API_KEY)
var data = {
	from: "+14356650499",
	to: "+14503350029",
	message: "How you doin"
}
vennSms.send(data, function(err, result){
	// email successfully sent if !err
})

#Development

adding a new email provider
  • write failing tests
  • add service to lib/models/providers (copy an existing provider)
    • change initialize and send functions to service specific way of initializing client/sending message
  • edit email_client.js and require lib/models/providers/[newservice].js
    • then add it in the configureServices
  • add api key validator to Venn API
install dependencies
npm install
Run Example
node examples/example.js
Run Example (with debug logging)
export VENN_API_KEY=""
DEBUG=email node examples/example.js
Run Tests
Export api keys
mocha

FAQs

Package last updated on 30 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc