unismsgateway 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -46,6 +46,29 @@ const testSms = async function(){
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### SEND PERSONALIZED MESSAGE
|
|
54
|
+
```javascript
|
|
55
|
+
|
|
56
|
+
const testSms = async function(){
|
|
57
|
+
try{
|
|
58
|
+
// const gateway = unisms.getSmsPlatform();
|
|
59
|
+
await gateway.sendPersonalized({From:'xxxxx',
|
|
60
|
+
To: {to: 233XXXXXXXXX, values: ['Alpha', 65332]}, // [{to: 233XXXXXXXXX, values: ['Alpha', 65332]}, {to: 211XXXXXXXXX, values: ['James', 2000]}, ]
|
|
61
|
+
Content: 'Testing unisms',
|
|
62
|
+
Type: 0}).then(r => {
|
|
63
|
+
console.log(r)
|
|
64
|
+
}).catch(err => {
|
|
65
|
+
console.log(err)
|
|
66
|
+
})
|
|
67
|
+
}catch(err){
|
|
68
|
+
console.log(err)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
49
72
|
}
|
|
50
73
|
|
|
51
74
|
```
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unismsgateway",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "A unified sms gateway library that brings access to multiple sms gateways under a single API",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/RazakAlpha/unismsgateway"
|
|
10
|
+
},
|
|
7
11
|
"scripts": {
|
|
8
12
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
13
|
"build": "tsc",
|