Skip to content

Commit c8057e6

Browse files
Update package.json and send_rcs.js, send_sms.js:
* update examples/javascript/common/package.json, examples/javascript/webhook/package.json * update send_rcs.js, send_sms.js to remove deprecated methods
1 parent ee1c193 commit c8057e6

4 files changed

Lines changed: 14 additions & 15 deletions

File tree

examples/javascript/common/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"description": "Common Examples for SOLAPI",
55
"keywords": [],
66
"author": {
7-
"name": "Nurigo Team",
8-
"email": "contact@nurigo.net"
7+
"name": "SOLAPI Team",
8+
"email": "contact@solapi.com"
99
},
1010
"license": "ISC",
1111
"dependencies": {
12-
"solapi": "^5.2.0"
12+
"solapi": "latest"
1313
}
1414
}

examples/javascript/common/src/rcs/send_rcs.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ messageService
2121
buttonType: 'WL',
2222
buttonName: '웹링크 버튼',
2323
link: 'https://으로 시작하는 웹링크 주소',
24-
}
24+
},
2525
],
2626
},
2727
})
2828
.then(res => console.log(res));
2929

3030
// 단일 예약발송 예제, send 메소드로도 동일하게 사용가능
31-
// 예약발송 시 현재 시간보다 과거의 시간을 입력할 경우 즉시 발송됩니다.
3231
messageService
33-
.sendOneFuture(
32+
.send(
3433
{
3534
to: '수신번호',
3635
from: '계정에서 등록한 RCS용 발신번호 입력',
@@ -42,7 +41,7 @@ messageService
4241
buttonType: 'WL',
4342
buttonName: '웹링크 버튼',
4443
link: 'https://으로 시작하는 웹링크 주소',
45-
}
44+
},
4645
],
4746
},
4847
},
@@ -64,7 +63,7 @@ messageService
6463
buttonType: 'WL',
6564
buttonName: '웹링크 버튼',
6665
link: 'https://으로 시작하는 웹링크 주소',
67-
}
66+
},
6867
],
6968
},
7069
},
@@ -79,7 +78,7 @@ messageService
7978
buttonType: 'WL',
8079
buttonName: '웹링크 버튼',
8180
link: 'https://으로 시작하는 웹링크 주소',
82-
}
81+
},
8382
],
8483
},
8584
},
@@ -103,7 +102,7 @@ messageService
103102
buttonType: 'WL',
104103
buttonName: '웹링크 버튼',
105104
link: 'https://으로 시작하는 웹링크 주소',
106-
}
105+
},
107106
],
108107
},
109108
},
@@ -118,7 +117,7 @@ messageService
118117
buttonType: 'WL',
119118
buttonName: '웹링크 버튼',
120119
link: 'https://으로 시작하는 웹링크 주소',
121-
}
120+
},
122121
],
123122
},
124123
},
@@ -144,7 +143,7 @@ messageService
144143
buttonType: 'WL',
145144
buttonName: '웹링크 버튼',
146145
link: 'https://으로 시작하는 웹링크 주소',
147-
}
146+
},
148147
],
149148
},
150149
replacements: [
@@ -155,4 +154,4 @@ messageService
155154
},
156155
],
157156
})
158-
.then(res => console.log(res));
157+
.then(res => console.log(res));

examples/javascript/common/src/sms/send_sms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const messageService = new SolapiMessageService(
1010

1111
// 단일 발송 예제, send 메소드로도 동일하게 사용가능
1212
messageService
13-
.sendOne({
13+
.send({
1414
to: '수신번호',
1515
from: '계정에서 등록한 발신번호 입력',
1616
text: '한글 45자, 영자 90자 이하 입력되면 자동으로 SMS타입의 메시지가 발송됩니다.',

examples/javascript/webhooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"body-parser": "^1.19.2",
1717
"express": "^4.17.3",
1818
"express-asyncify": "^1.0.1",
19-
"solapi": "^5.1.3"
19+
"solapi": "latest"
2020
}
2121
}

0 commit comments

Comments
 (0)