chii_wallet 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# TrueWallet-NodeJS-Module
|
2
2
|
|
3
3
|
## Installation
|
4
4
|
```sh
|
@@ -8,9 +8,9 @@ npm i chii_wallet
|
|
8
8
|
How To Use
|
9
9
|
|
10
10
|
```js
|
11
|
-
const
|
11
|
+
const CHII_API_WALLET = require('chii_wallet')
|
12
12
|
function TOPUP_Wallet(code) {
|
13
|
-
const tw = await
|
13
|
+
const tw = await CHII_API_WALLET(code, '[เบอร์โทร]')
|
14
14
|
console.log(tw)
|
15
15
|
}
|
16
16
|
|
@@ -19,9 +19,9 @@ TOPUP_Wallet()
|
|
19
19
|
|
20
20
|
Example Code
|
21
21
|
```js
|
22
|
-
const
|
22
|
+
const CHII_API_WALLET = require('chii_wallet')
|
23
23
|
function TOPUP_Wallet(code) {
|
24
|
-
const tw = await
|
24
|
+
const tw = await CHII_API_WALLET(code, '[เบอร์โทร]')
|
25
25
|
switch (tw.status.code) {
|
26
26
|
case "SUCCESS":
|
27
27
|
console.log('ไดรับเงินแล้วจำนวน'+tw.data.my_ticket.amount_baht)
|