
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
A Node.js library for Octopush API.
Octopush offers a solution that was built in-house as a hosted service (SaaS, Software as a Service and an API) to allow marketing departments of major groups, advertising agencies and IT companies to enjoy an infrastructure that supports sending SMS messages to more than 200 countries.
Installation via npm
npm install octopush
config.js)var octopush = require('octopush');
module.exports = {
user_login: '************@********',
api_key: '****************',
sms_recipients: ['+33600000000'],
sms_text: 'test text ' + (new Date()).getYear() + '-' + ((new Date()).getMonth() + 1) + '-' + (new Date()).getDay(),
sms_type: octopush.constants.SMS_PREMIUM,
sms_mode: octopush.constants.INSTANTANE,
sms_sender: 'Octopush'
};
var octopush = require('octopush');
var config = require('./config.js');
var sms = new octopush.SMS(config.user_login, config.api_key);
sms.get_balance(function(e, r){
console.log(r.octopush.balance);
});
var octopush = require('octopush');
var config = require('./config.js');
var sms = new octopush.SMS(config.user_login, config.api_key);
sms.set_sms_text(config.sms_text);
sms.set_sms_recipients(config.sms_recipients);
sms.set_sms_type(config.sms_type);
sms.set_sms_mode(config.sms_mode);
sms.set_sms_sender(config.sms_sender);
sms.set_sms_request_id(sms.uniqid());
sms.send(function(e, r){
if(e) {
console.log('Error:', r);
} else {
console.log('Success:', JSON.stringify(r));
}
});
More examples can be found in Simple Examples and Advanced Examples.
This library is completely documented using JSDoc and will show autocompletions in all editors that supports it. Alternatively you can build HTML version of documentation via jsdoc tool.
API documentation available on Octopush API documentation portal.
FAQs
Octopush API wrapper
We found that octopush 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.