Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
dialog-sms-service
Advanced tools
JavaScript library to send SMS through Dialog telecommunication service
This library will handle single or multiple SMS send feature with Dialog telecommunications service.
npm install dialog-sms-service
const smsGateway = require('dialog-sms-service');
(async () => {
try {
// set configuration
await smsGateway.setConfig({
digest: 'dialog_msg_digest_here',
mask: 'dialog_msg_mask_here',
user: 'dialog_msg_user_here',
campaignName: 'dialog_msg_campaignName_here', //optional
});
//send message
const result = await smsGateway.sendSMS('07XXXXXXXX', 'Dialog sms test');
console.log(result);
} catch (error) {
console.log(error);
}
})();
Note:- Please contact Dialog Axiata PLC in order to obtain following fields.
Field | Description |
---|---|
Username | User name for the Dialog SMS gateway account. |
Password | Password for the Dialog SMS gateway account. |
mask | Text that appears as the sender of the SMS. Eg:- PIZZAHUT |
// set configuration
await smsGateway.setConfig({
digest: 'dialog_msg_digest_here',
mask: 'dialog_msg_mask_here',
user: 'dialog_msg_user_here',
campaignName: 'dialog_msg_campaignName_here', //optional
});
Field | Description |
---|---|
user | Required. Username that will provided by Dialog. |
mask | Required. A String. SMS sender ID.Mask value provided by Dialog. Eg:- test (For the test account) |
digest | Required. md5 encripted values of password. {digest = md5(password provided by dialog)} |
campaignName | Optional. Campaign name to be used in reporting. |
await smsGateway.sendSMS(Phone Number ,Message);
Field | Description |
---|---|
Phone Number | Required. A String. Phone number/s which will need to receive SMS. the phone number needs to either start with 0 or 94 (do not use +94). If there are multiple receivers make sure to add them as comma (,) separated text. Eg :- '0771111111,0712222222' |
Message | Required. A String. The content of the SMS goes here. |
(The MIT License) Copyright (c) 2021 kmkasunmadushanka@gmail.com
FAQs
Javascript library for send sms using dialog SMS gateway
The npm package dialog-sms-service receives a total of 25 weekly downloads. As such, dialog-sms-service popularity was classified as not popular.
We found that dialog-sms-service 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.