https://github.com/dns2utf8/mod-aspsms
https://github.com/dns2utf8/mod-aspsms
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dns2utf8/mod-aspsms
- Owner: dns2utf8
- License: mit
- Created: 2013-03-19T11:17:26.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2021-01-15T16:17:13.000Z (over 5 years ago)
- Last Synced: 2025-03-10T01:16:12.941Z (over 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
mod-aspsms
==========
Gateway to SMS-Provider Aspsms for [node](http://nodejs.org).
```js
var config = {
"disable": true, // switch to false to enable the service
"UserName": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"Password": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"Originator": "Your Name",
// Optional:
"logger": console.log, // if you would like to see debug output
"URLDeliveryNotification": "https://example.com/success",
"URLNonDeliveryNotification": "https://example.com/failure"
};
const sms = require('mod-aspsms')(config);
const msg = 'Test SMS from NodeJs';
const addressBook = ['+41798765432'];
sms.send(addressBook, msg);
```
I released this code because I believe everyone should be able to send texts with node.
## Additional docs
https://json.aspsms.com/