
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
messagemedia
Advanced tools
A library that allows NodeJS programmers to access MessageMedia's SOAP API.
A library that allows NodeJS programmers to access MessageMedia's SOAP API.
IMPORTANT! This is taken from the official messagemedia site. The offical site seems to have forgotten to push up the library and since I needed to use it for my app on heroku and did not want to embed it into the source code, I have made this. It will be unlikely to be updated and I recommend swtiching over to the official library if MessageMedia ever does push it up.
Clone the repository into your application's node_modules directory.
$ git clone https://github.com/messagemedia/messagemedia-nodejs.git messagemedia
OR
Install it as a package from npm (Node Package Manager).
$ npm install messagemedia
OR
Create a package.json file in the project's root directory and add messagemedia-unofficial as a dependency. You can refer to the one in this project's root directory. After this file is created you can run the following command...
$ npm install
Follow the sample documentation from there.
IDE: Eclipse Standard
Version: Kepler Service Release 2.
It is suggested that you install http://www.nodeclipse.org/ into Eclipse. This plugin allows you to interact with NodeJS from within Eclipse.
You do not need Eclipse or any IDE to use this library. You can get started with as little has 4 lines of code...
// app.js
const mm = require('messagemedia');
mm.checkUser('userId', 'password', function(resp){
console.log(resp);
});

To run the sample web application type the following command:
node sample/app.js
In /sample there is a sample web application that can be used to test/demonstrate the library.
In your web-browser go to http://localhost:3000/
This sample uses the Express web application framework package, on the NodeJS side.
The server (NodeJS) hosts a http server which serves a single-page for a web browser to access and a REST service. The REST service acts as a translation layer allowing two-way communication between MessageMedia's WSDL based SOAP API and this NodeJS's JSON based REST API. I have chosen to use AngularJS on the client (browser) because it is feature-rich and allows easy access to REST resources on the server.
The code snippet below shows how a very simple REST interface could be made to access MessageMedia's SOAP API via this library.
var messagemedia = require('messagemedia');
app.post('/api/checkUser', function(req, res){
messagemedia.checkUser(req.body.userId, req.body.password, function(result){
res.send(result);
});
});
When attempting to run /tests.js for the first time you must...
Create a config.json file in project root directory (use the config.template.json file as a template)
Run $ npm install nodeunit -g
In /test execute $ nodeunit tests.js
TC 1: Checking
TC 2: Number Blocking
TC 3: Confirmations
TC 4: Messages
Please note: The unit tests require an active MessageMedia account in order for them to function.
FAQs
A library that allows NodeJS programmers to access MessageMedia's SOAP API.
We found that messagemedia 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.