We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f8604e commit 079a717Copy full SHA for 079a717
1 file changed
examples/javascript/common/src/inquiry/get_balance.js
@@ -1,7 +1,16 @@
1
/**
2
* 잔액 조회 예제
3
*/
4
-const { SolapiMessageService } = require("solapi");
5
-const messageService = new SolapiMessageService("ENTER_YOUR_API_KEY", "ENTER_YOUR_API_SECRET");
+const {SolapiMessageService} = require('solapi');
+const messageService = new SolapiMessageService(
6
+ 'ENTER_YOUR_API_KEY',
7
+ 'ENTER_YOUR_API_SECRET',
8
+);
9
-messageService.getBalance().then(res => console.log(res));
10
+messageService.getBalance().then(res => {
11
+ // 잔액 조회
12
+ console.log(res.balance);
13
+
14
+ // 포인트 조회
15
+ console.log(res.point);
16
+});
0 commit comments