
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
elastic-email-promise
Advanced tools
LITE & EASY Elastic Email API Wrapper with ES 2015 Promises.
This LITE Wrapper, allows you to quickly and easily use the Elastic Email API v2 via Node.js and with ES 2015 Promises.
Install:
npm i elastic-email-promise
Set up your client:
const ee = require( 'elastic-email-promise' );
const eeClient = ee.Client( { apikey: 'Your Apikey' } );
request method with only api key required:
eeClient.request( '/account/load' )
.then( function( data ) { console.log( data ) } )
.catch( function( error ) { console.log( error ) } );
request method with more parameters:
eeClient.request( '/contact/findcontact', { email: 'example@example.com' } )
.then( function( data ) { console.log( data ) } )
.catch( function( error ) { console.log( error.message ) } )
request method with file upload:
const fs = require('fs');
eeClient.request( '/contact/upload', {
contactFile: fs.createReadStream('CSV_Sample1.csv')
})
.then( function( data ) { console.log( data ) } )
.catch( function( error ) { console.log( error.message ) } )
eepromise.request( 'path', { params } );
path : string; path for method (f.e. "/channel/list") params: object; parameters for method return => Promise Object with respond
More information about EE Api methods you can find in EE API Documentation
Elastic Email API (version 2) response dosen't have correct HTTP status code. All responses are JSON string:
//On success
{success: true, data: /* response data it could be array or object */}
//On false
{success: false, error: 'error message as string'}
FAQs
LITE & EASY Elastic Email API Wrapper with ES 2015 Promises.
The npm package elastic-email-promise receives a total of 7 weekly downloads. As such, elastic-email-promise popularity was classified as not popular.
We found that elastic-email-promise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.